Hello - I need a little help for irrlicht.Net!
I would like to anim a object one time, if the user click the object with the mouse. (That`s not the problem) But the object shall rotate at 45 degree and then stopping. Also, i must know that the anim is stopt.
Thanks for help and answers!
Help - Object animation one time?
-
- Posts: 3
- Joined: Wed Jun 27, 2007 10:29 am
- Location: Germany
- Contact:
Sounds like the easiest way for you to accomplish this, is to use the iSceneNode.Rotation method. just make a loop increasing your rotation until it is 45. that way it will actually turn on screen.
Something like this:
You could always just have that rotation done in your model's animation as well, but this will be easier IMO.
Something like this:
Code: Select all
for I = 1 to 45
node.rotation(new vector3d(i,0,0))
next
-
- Posts: 3
- Joined: Wed Jun 27, 2007 10:29 am
- Location: Germany
- Contact: