Catching the end of createFlyStraightAnimator

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
r3i
Posts: 147
Joined: Wed Jun 29, 2005 10:15 am
Location: Sorrento
Contact:

Catching the end of createFlyStraightAnimator

Post 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?
"We work in the dark, we do what we can, we give what we have, Our doubt is our passion and our passion is our task. The rest: is art of Madness" (H.James)
Guest

Post by Guest »

yeah, I share the same question with r3i. anyone answer it? I really need it.
JP
Posts: 4526
Joined: Tue Sep 13, 2005 2:56 pm
Location: UK
Contact:

Post 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.
Image Image Image
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post 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.
Image
Post Reply