Problem with quaternion to euler

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Problem with quaternion to euler

Post by JunkerKun »

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)?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with quaternion to euler

Post by CuteAlien »

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
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Re: Problem with quaternion to euler

Post by JunkerKun »

Seems so...
So, no real solution for now?
CuteAlien
Admin
Posts: 9734
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Problem with quaternion to euler

Post by CuteAlien »

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
JunkerKun
Posts: 97
Joined: Mon Jan 28, 2013 12:52 am

Re: Problem with quaternion to euler

Post by JunkerKun »

Okay then, I'll wait. Thanks.
Post Reply