Convert Quat to Euler Angles?

Miscellaneous Forums/General Discussion/Convert Quat to Euler Angles?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

FlameDuck: Thank you, that indeed seems to be the most accurate way I've found. It's much, more more accurate than the inbuilt conversion so this will be a great replacement for me to provide my own GetRotation() method. Thanks again.

The QuatToEuler functions given here just give you *one* correct Euler angle.

That seems to depend on the order of rotation. Perhaps it's correct for some engines, but it does not appear to be producing the same orientation with the engine I'm using.
And 91,0,0 converts back to 90,0,0 and that's definitely not correct, with any order of rotations.