Here are my old notes about rotation order:
Just what do EntityPitch/Yaw/Roll return?
After doing 'RotateEntity e,p,y,r' they return p,y,r. This is no great surprise. But their individual meaning is not so obvious. Experimentation shows that doing the simple turns in the order Yaw,Pitch,Roll gives the same result as 'RotateEntity e,Pitch,Yaw,Roll'.
RotateEntity e, 0,0,0 TurnEntity e, 0,y,0 TurnEntity e, p,0,0 TurnEntity e, 0,0,r
Now Pitch,Yaw and Roll are reported as p,y,r.
The values are in the following ranges:
-180 < Yaw <= 180 -180 < Roll <= 180 -90 <= Pitch <= 90 note that -90 is included.
|