rotate scene node
rotate scene node
How can i make an animation to rotate a scene node for 180 degrees and then stop.
Is there a specific function?
Because CreateRotationAnimator it rotates it non-stop. I want it to stop after it rotates 180 degrees.
Thanks
Is there a specific function?
Because CreateRotationAnimator it rotates it non-stop. I want it to stop after it rotates 180 degrees.
Thanks
Doesn't seem to be supported so far. So you have to write your own animator for that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
thanks for the advice I have done it
now for another question( i'm sorry if i'm asking too many questions ), i don't need any code I only need ideas.
for example how do you make a scene node appeear , it does it's animation, then another one appears, it does it's animation and so on.
I don't want all of them to appear at the same time and do their animations, I want them to appear in an order.
Thanks
now for another question( i'm sorry if i'm asking too many questions ), i don't need any code I only need ideas.
for example how do you make a scene node appeear , it does it's animation, then another one appears, it does it's animation and so on.
I don't want all of them to appear at the same time and do their animations, I want them to appear in an order.
Thanks
You might need another layer for logic to do this and do the things exactly as you said yourself.Varn1807 wrote:thanks for the advice I have done it
now for another question( i'm sorry if i'm asking too many questions ), i don't need any code I only need ideas.
for example how do you make a scene node appeear , it does it's animation, then another one appears, it does it's animation and so on.
I don't want all of them to appear at the same time and do their animations, I want them to appear in an order.
Thanks
Working on game: Marrbles (Currently stopped).
I mean on top of irrlicht framework that would do what you want. It might be some Object classes that hold nodes and manipulates them the way you need. Also a manager for those object would be nice (Like scene manager irn irrlicht). It's up to you to design it.Varn1807 wrote:have no idea about layers can you explain a bit
Working on game: Marrbles (Currently stopped).
Re: rotate scene node
I have a somewhat similar question. Nodes that I have created can be moved by WASD keys. I want them to face the direction in which they're moving. Say, if they're facing east, I want them to instantly turn west when I push A. However, I just can't seem to find a way to turn the ndoes. There's a rotation animator, but that's not what I want. I just need the node to instantly turn around. Is there a method which takes the angle of rotation as a parameter, and then instantly performs rotation?
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
Re: rotate scene node
Maybe go throught the examples first. They have a purpose: Learning the basics of Irrlicht. Anyway, check the scene node API. There's also rotation and movement without animators.
Re: rotate scene node
You're right, thanks. I've found a way to rotate it successfully.