I have my ZYX rotation in axis angle ( 0 ~ 360 ), Im using Bullet Physics and Bullet require that the angles are in euler (setEuler) ( how can I do the convertion between the two types?
Tks
I have my ZYX rotation in axis angle ( 0 ~ 360 ), Im using Bullet Physics and Bullet require that the angles are in euler (setEuler) ( how can I do the convertion between the two types?
Tks
There are equivalent, maybe watch out for the rotation order.
http://en.wikipedia.org/wiki/Euler_angles
If you have quaternions however :
http://en.wikipedia.org/wiki/Conversion_between_quaternions_and_Euler_angles
In Bullet Physics:
So I believe your angle order should be YXZ. Also, you should use radians, not degrees (multiply your angles by PI/180).
Oh, and just to clear up the terminology: axis-angle means you have a rotation axis vector and an angle you’re rotating around it. Not the same thing as Euler angles.