Hi All
With my model I am using a FlyStraightAnimator(without looping) for the movement and a RotationAnimator but have a question. According to the docs when finished I can remove the animators using drop(), but, when do I know the animator is finished?, eg. I want to rotate the model to look at a certain point and also move it to that point using above mentioned animators, when it is done, I want to remove the animators. Is there an easy way that I am missing or must I code some extra if statements to check my vectors against?
Regards
Johan (Teddiebeer)
Removing Animators when done
-
teddiebeer
- Posts: 5
- Joined: Thu Jul 15, 2004 9:45 am
Hi again
I add them in the eventReceiver. ie. I recieve a mouse event, create the animator, add it to the node and drop it. This works as it then animates as it should, but what happens when I receive the next mouse event? Does it remove the previous animator when done or is it still attached to the node, only inactive?
Regards
Teddiebeer
I add them in the eventReceiver. ie. I recieve a mouse event, create the animator, add it to the node and drop it. This works as it then animates as it should, but what happens when I receive the next mouse event? Does it remove the previous animator when done or is it still attached to the node, only inactive?
Regards
Teddiebeer