Blitz3D rotation order?

Blitz3D Forums/Blitz3D Programming/Blitz3D rotation order?

JoshK(Posted 2004) [#1]
I'm trying to mimic the B3D rotations. It's really hard. Is Blitz X,Z,Y or Z,X,Y rotation order?


Ross C(Posted 2004) [#2]
It's Z,X,Y. :)


Floyd(Posted 2004) [#3]
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.


JoshK(Posted 2004) [#4]
You both just told me completely opposite things.


Ross C(Posted 2004) [#5]
Well, i'm using Z,X,Y for my custom rotations for the single surface particle stuff. If i do it X,Z,Y they don't rotate correctly.


JoshK(Posted 2004) [#6]
I was pretty sure it was Z,X,Y, but thought I would ask.


(tu) sinu(Posted 2004) [#7]
i also get z,x,y if you were still wondering.


Warren(Posted 2004) [#8]
How hard would this be to test? Seriously.