vector3df v4;
quaternion q1;
q1.fromAngleAxis(65.25f*DEGTORAD, vector3df(1, 0, 0));
q1.toEuler(v4);
vector3df v5;
matrix4 mx4;
mx4.setRotationDegrees(vector3df(65.25f,0,0));
quaternion q2(mx4);
q2.toEuler(v5);
v4*RADTODEG is 65.249992,-0.000000,0.000000
v4 is right, BUT v5 get a wrong sign.
v5*RADTODEG is -65.249992,-0.000000,0.000000
WHY? i work on Irrlicht 1.6
Thanks!
quaternion.toEuler() or matrix4.setRotationDegrees() wrong
-
- Posts: 7
- Joined: Sun Dec 13, 2009 1:54 am
Re: quaternion.toEuler() or matrix4.setRotationDegrees() wro
Does anyone have a solution to this? I'm finding the same issue.
Re: quaternion.toEuler() or matrix4.setRotationDegrees() wro
This was fixed in 1.8.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm