rotation in z-axis

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
fds
Posts: 1
Joined: Mon Mar 29, 2004 3:41 pm
Location: Blumenau - SC - Brazil

rotation in z-axis

Post by fds »

Hi,
I'm trying to rotate a model in the XYZ axis, using the getRotation() and setRotation() methods. The rotation in the X and Y axis work perfectly, but the Z-axis rotation don't. When I set a rotation angle in the Z-axis, the model rotate around the world Z-axis, instead of the model Z-axis.
What are happening? Some sugestion?

Thanks all.
Fernando
Guest

Post by Guest »

This just sounds like a bug in the Engine. I personally haven't tried this, but if it works for ther other two axis, and then it changes from model to world axis', that makes me think a problem with the engine

Phreak
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Thats because Irrlicht seems to use Z-Y-X order of rotation and euler angles.
arras
Posts: 1622
Joined: Mon Apr 05, 2004 8:35 am
Location: Slovakia
Contact:

Post by arras »

Post Reply