Page 1 of 1
Vector rotation order
Posted: Fri Dec 01, 2006 11:17 am
by pdenbrook
What is the rotation order of the Euler angles (pitch, roll, and yaw) returned by INPVector? Given the Y-up and Z-forward (relative to the camera) coordinate system, I assume pitch is the X-axis rotation, roll is the Z-axis rotation, and yaw is the Y-axis rotation.
Thanks,
Patty
Re: Vector rotation order
Posted: Mon Jan 01, 2007 5:31 pm
by pwierz
Does anyone know the answer? I would like to know this too.
Re: Vector rotation order
Posted: Fri Jan 12, 2007 7:27 pm
by yoshi
The order of transformations is roll first, then pitch, then yaw. Relative to the object's local coordinate axis, this is equivalent to rotation around the z-axis, followed by rotation around the x-axis, followed by rotation around the y-axis.
Re: Vector rotation order
Posted: Tue Oct 30, 2007 9:12 pm
by tsudo
Can I just confirm that each rotation is around the new local frame after the prior rotation?
e.g. that the pitch rotation is rotation around local x'-axis where x' is the local x-axis after the roll (z-axis) rotation?
and that the yaw rotation is around the final y''-axis ? (y being initial, and y' being the y-axis after pitch).
cheers

Re: Vector rotation order
Posted: Thu Nov 01, 2007 4:34 pm
by tlow
I suspect that the answer given, that the angles are about the moving axis is incorrect. The typical Euler angle convention is to rotate about (Y) through angle (Yaw), then about the new (X) by angle (Pitch) and finally about the new Z by angle (Roll). This gives the same result as rototing about a fixed( Z) by (Roll)followed by a rotation about a fixed (X) by (Pitch), and finally about the fixed Y by (Yaw). It seems unlikly that they would use the latter order of rotation but use body rotated axes rather than the conventional body fixed axis.