Ok maybe this is a silly question. but why irrlicht don't have a built in
scene node animator that will move one scene node from one place to a fixed direction at a given speed for ever?
ok maybe is much simpler just updating the position of the node addicting a constant that have to be resized according to the time elapsed from last scene draw.
But if there are lots of nodes isn't simpler a built in animation of that type?
Why Irrlicht don't have a linear animation node?
-
- Posts: 115
- Joined: Mon May 17, 2010 7:42 am
-
- Posts: 115
- Joined: Mon May 17, 2010 7:42 am
ok that was a silly question. But actually i'm not able to derive my own animator without rebuild all the engine. So i did it and have a dll with a little extra animator.
Maybe it is a good idea providing a class that permitt people to register new custom animation without the need of rebuilding the engine (or maybe it is possible do it and i don't know how to do. everything is possible )..
actually animators are derived from a class that is not visible from the end dll but only when you compile the engine
Maybe it is a good idea providing a class that permitt people to register new custom animation without the need of rebuilding the engine (or maybe it is possible do it and i don't know how to do. everything is possible )..
actually animators are derived from a class that is not visible from the end dll but only when you compile the engine
You don't have to rebuild irrlicht for that.
Just derieve from ISceneNodeAnimator and implement the pure virtuals. You can even copy most of the code from CSceneNodeAnimatorFlyStraight for your purpose.
Edit:
I just checked the code and actually it's just a few lines of code.
Just derieve from ISceneNodeAnimator and implement the pure virtuals. You can even copy most of the code from CSceneNodeAnimatorFlyStraight for your purpose.
Edit:
I just checked the code and actually it's just a few lines of code.
Never take advice from someone who likes to give advice, so take my advice and don't take it.
If you want to make some mouvements easily, you can use some tweens:
http://code.google.com/p/cpptweener/
http://code.google.com/p/cpptweener/