Page 1 of 1

Animations In Sequence

Posted: Tue May 11, 2010 12:24 am
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.

Posted: Tue May 11, 2010 8:30 am
by so1odo1o
Any help please

Posted: Tue May 11, 2010 9:33 am
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.

Posted: Tue May 11, 2010 9:37 am
by randomMesh

Posted: Tue May 11, 2010 5:22 pm
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.