Regarding movement of bird /Related to tutorial 9
Posted: Wed Aug 23, 2006 10:04 pm
hi all ,
In tutorial 9 i have loaded my bird mesh instead of the solider with the following edition in loadmodel() function
-------------------------------------------------
void loadModel(const c8* fn)
{
if (Model)
Model->remove();
Model = 0;
scene::IAnimatedMesh* m = Device->getSceneManager()->getMesh("../../media/bird.x");
// set default material properties
Model = Device->getSceneManager()->addAnimatedMeshSceneNode(m);
Model->setMaterialFlag(video::EMF_LIGHTING, false);
Model->setDebugDataVisible(true);
}
---------------------------------------------------------------------------------
Is there a way that i can make this static .X mesh bird move .
please let me know
thanks
hkolli
In tutorial 9 i have loaded my bird mesh instead of the solider with the following edition in loadmodel() function
-------------------------------------------------
void loadModel(const c8* fn)
{
if (Model)
Model->remove();
Model = 0;
scene::IAnimatedMesh* m = Device->getSceneManager()->getMesh("../../media/bird.x");
// set default material properties
Model = Device->getSceneManager()->addAnimatedMeshSceneNode(m);
Model->setMaterialFlag(video::EMF_LIGHTING, false);
Model->setDebugDataVisible(true);
}
---------------------------------------------------------------------------------
Is there a way that i can make this static .X mesh bird move .
please let me know
thanks
hkolli