I'm confused.
When I use toEuler I get (89.999, -10, 6) when it should be (90, 6, 6) (I checked in the 3d editor). I use it to get rotation of a joint directly from a mesh. Why does it happen?
Also, whil I'm here, does anyone know why when I have those rotations, when I get them in game with getRotation, I get completely different angles (up to +360 to each axis)?
Problem with quaternion to euler
Re: Problem with quaternion to euler
Maybe related to this: http://irrlicht.sourceforge.net/forum/v ... =7&t=50620
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
Re: Problem with quaternion to euler
Seems so...
So, no real solution for now?
So, no real solution for now?
Re: Problem with quaternion to euler
Not yet, no.
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
Re: Problem with quaternion to euler
Okay then, I'll wait. Thanks.