Cant rotate a mesh
Posted: Wed Jan 20, 2010 8:07 am
Im using arrays cockpit flight controls to control the node and make the camera and heres the node setup info
no matter how i change the setRotation, the model stays facing the same direction,, it moves and flies correctly, just the model isnt orientated correctly. any tips?
plus in my workings with arras flight controls it appears the camera is the object moved and the node is moved around the camera, is there a way to get the controls to control the node and the camera to follow?
Code: Select all
IAnimatedMesh* mesh = smgr->getMesh("../../media/shuttle/shuttle9.3ds");
if (!mesh)
{
device->drop();
return 1;
}
IAnimatedMeshSceneNode* node1 = smgr->addAnimatedMeshSceneNode( mesh );
if (node1)
{
node1->setMaterialFlag(EMF_LIGHTING, false);
node1->setScale(vector3df(.005,.005,.005));
node1->setRotation(vector3df(0,-90,0));
}
plus in my workings with arras flight controls it appears the camera is the object moved and the node is moved around the camera, is there a way to get the controls to control the node and the camera to follow?