Conversion of a quaternion to the equivalent Euler angles

21 views
Skip to first unread message

chrisbe...@gmail.com

unread,
Jun 23, 2017, 10:27:33 AM6/23/17
to libfreespace
Hi everyone,

I'm looking for a way to get yaw, pitch and roll from the quaternion which you get in the MotionEngine OutputPaket.
Did someone try to do this?

I found several equations, a very good overviwe you can find here.

But one important question is which orientation is used.
Unfortunately I didn't found in the documentation any hint which orientation is used.
So I used XYZ, you first rotate around the x-Axis, then around y and finally around z.
A code in C/C++ you can find here

Thanks in advance


Reply all
Reply to author
Forward
0 new messages