Regarding movement of bird /Related to tutorial 9

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Regarding movement of bird /Related to tutorial 9

Post 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
monkeycracks
Posts: 1029
Joined: Thu Apr 06, 2006 12:45 am
Location: Tennesee, USA
Contact:

Post by monkeycracks »

Do you mean move in a circle, straight, or just animated?
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Post by hkolli »

i want to move it in a circle ........
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

Look in the documentation for createFlyCircleAnimator.
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Post 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 ?......
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post 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
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
hkolli
Posts: 42
Joined: Thu Jul 13, 2006 8:29 pm

Post 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 ?????
Post Reply