03.04.2010, 02:17
Hi,
I want to convert maps made with MEd a pawn script.
I already found the solution to convert Quaternion to Euler Angles for rotation.
My converter says 150,30,0 (rotation X,Y,Z). And MEd also shows 150,30,0 for the rotation.
But if I try to use these values for the rotation in CreateObject the in-game object rotation is wrong.
Here the code I used to write my converter: http://www.darwin3d.com/gamedev/quat2eul.cpp
What did I do wrong?
I want to convert maps made with MEd a pawn script.
I already found the solution to convert Quaternion to Euler Angles for rotation.
My converter says 150,30,0 (rotation X,Y,Z). And MEd also shows 150,30,0 for the rotation.
But if I try to use these values for the rotation in CreateObject the in-game object rotation is wrong.
Here the code I used to write my converter: http://www.darwin3d.com/gamedev/quat2eul.cpp
What did I do wrong?