I have tried out the animators, and I found that each time only the newest added animator is active for the mesh to move.
eg: I first added a flystraight animator and then a rotation animator, the mesh will only rotate.
So, I want to ask how can I make the mesh move straight with keeping rotate?? And how can I create some self coded animator??
Thx a lot.
About multiple Animation
As you've found irrlicht only supports one animator at a time on a node. If you want to have it flying and rotating then you need to code your own animator (as you've also noticed).
To do that you can look at the source for the two animators in question and then basically just integrate the code of the two animators into one animator by writing a class extending ISceneNodeAnimator.
To do that you can look at the source for the two animators in question and then basically just integrate the code of the two animators into one animator by writing a class extending ISceneNodeAnimator.
oh
I haven't looked at this since I first started using Irrlicht
So is it possible to add a collision, fly circle, and rotation animator to make a character walk in a circle across the terrain?
Or flystraight, rotation and fly circle to make a loop-the-loop motion?
edit: oh you mean adding the same animator to multiple nodes?
I haven't looked at this since I first started using Irrlicht
So is it possible to add a collision, fly circle, and rotation animator to make a character walk in a circle across the terrain?
Or flystraight, rotation and fly circle to make a loop-the-loop motion?
edit: oh you mean adding the same animator to multiple nodes?
-
williamlai3a
- Posts: 13
- Joined: Wed Sep 19, 2007 11:57 am
Yes, so I really need to do a new animator.JP wrote:As you've found irrlicht only supports one animator at a time on a node. If you want to have it flying and rotating then you need to code your own animator (as you've also noticed).
To do that you can look at the source for the two animators in question and then basically just integrate the code of the two animators into one animator by writing a class extending ISceneNodeAnimator.
Can you tell me where ahould I add the API for editing the engine?
It seems I need to add some class named C........Animator and some ABC class, am I right?
Thx
