Determinning to where an animated mesh should face.

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
yossi1981
Posts: 3
Joined: Sat May 02, 2009 9:44 pm

Determinning to where an animated mesh should face.

Post by yossi1981 »

Hi all.

I read tutorial number 4 from this page :http://irrlicht.sourceforge.net/tutorials.html . this tutorial is abotu movement and animators.

I understood the idea of the animator. What I am missing is a way to determine where the mesh is facing to. In the example from the tutorial , the ninja mesh is loaded and the animator is then use to animate it but the ninja face is allways lookng to the same direction.

I would like the ninja to face to the direction which it is walking to. I could calculate and use rotation by myself but since I don't like to invent wheels I would ask you guys If there is already a built in feature in the engine that can do the work for me .

Thanks in advance,
Yossi
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

The existing animators (fly circle, fly straight, and the like) aren't really setup to work with character models. They don't rotate the node or manage animations state or anything like that. If you want more control over your character models, you'll probably have to write the code to do it yourself.

Travis
Post Reply