different representation in getRotation

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
happyer
Posts: 17
Joined: Wed Aug 15, 2007 2:07 pm

different representation in getRotation

Post by happyer »

I discover something. When I setRotation() on ISceneNode, then getRotation(), the angle returned will be (0, angle, 0). But when I use IrrNewt, and use setRotation() on ICharacterController, then getRotationBody(), the angle returned will be (180, f(angle), 180) where f(x) is the value of angle after some calculation.
Why they have different representation? Am I using the wrong getRotation method? Any function can convert between them?
Post Reply