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?