Animations In Sequence

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
so1odo1o
Posts: 32
Joined: Sat Apr 03, 2010 10:29 am

Animations In Sequence

Post by so1odo1o »

I have a node that I want to travel from point A to point B. Once it reaches point B, I want it to then animate itself to point C.

Doing this isn't possible by just adding 2 animators (A to B, B to C). How would I then check if the node has reached from A to point B and then call the animation from B to C.

Thanks.
so1odo1o
Posts: 32
Joined: Sat Apr 03, 2010 10:29 am

Post by so1odo1o »

Any help please
garrittg
Posts: 117
Joined: Wed Apr 20, 2005 6:17 pm
Location: Iowa, USA
Contact:

Post by garrittg »

greetings :) i believe what you are looking for is a spline animator. check out:

ISceneManager::createFollowSplineAnimator

you load it with a sequence of points and the node will follow them. alternatively, you could use two fly straight animators.

ISceneManager::createFlyStraightAnimator

once you reach point B, add a new fly straight animator to point C.
randomMesh
Posts: 1186
Joined: Fri Dec 29, 2006 12:04 am

Post by randomMesh »

"Whoops..."
so1odo1o
Posts: 32
Joined: Sat Apr 03, 2010 10:29 am

Post by so1odo1o »

Thank you very much.

What I initially had was adding 2 createFlyStraightAnimators to my node. If I remember correctly, it only used the last one since I wasn't letting the first one finish before adding the second one.

Also, the image in the other thread helps a lot. Thank you.
Post Reply