Page 1 of 1

Regarding movement of bird /Related to tutorial 9

Posted: Wed Aug 23, 2006 10:04 pm
by hkolli
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

Posted: Thu Aug 24, 2006 4:42 am
by monkeycracks
Do you mean move in a circle, straight, or just animated?

Posted: Thu Aug 24, 2006 3:26 pm
by hkolli
i want to move it in a circle ........

Posted: Thu Aug 24, 2006 3:28 pm
by vitek
Look in the documentation for createFlyCircleAnimator.

Posted: Thu Aug 24, 2006 9:48 pm
by hkolli
IS there a way i can introduce another bird ?...... is there another way in which i can move the bird according to certain rules ....... like not allow any two birds moving colliding ?......

Posted: Fri Aug 25, 2006 1:45 am
by Acki
For example you can use Open Steer !!!
Have a look at the flies-demo at the bottom of this site:
http://abusoft.angelcities.com

Posted: Wed Aug 30, 2006 5:41 pm
by hkolli
acki ,

i downloaded the codes in the link to carry my work on the example u gave . but while executing the code it breaks . why does this happens . when i click on break it points to setMaterialFlag function in irrScenenode ?????