Page 1 of 1

Catching the end of createFlyStraightAnimator

Posted: Wed Mar 08, 2006 11:39 am
by r3i
Hi guys,
i would to know if there is a way to know when a createFlyStraightAnimator ends to animate a node.

I have a cube and it goes on a line and then it stops. Can I know when it stops or must I have a timer?

Posted: Fri Mar 10, 2006 6:30 pm
by Guest
yeah, I share the same question with r3i. anyone answer it? I really need it.

Posted: Fri Mar 10, 2006 6:48 pm
by JP
You could use a timer, or each frame you could check to see if it's stopped moving yet either by checking its position against its position last frame, or checking whether it's reached its destination.

I don't know if there's any better method to use.

Posted: Fri Mar 10, 2006 8:23 pm
by Spintz
IrrSpintz has an implemenation of callbacks from the animators, you could pull the code from there and implement it into Irrlicht. I also think hybrid made patches for the particle changes in IrrSpintz.