Notifications
Clear all

[Closed] Find the Pivot rotation axis order

Hi

Is there any way to find the true object’s pivot rotation axis order. I mean not the axis order.
For example which axis is upward X or Y or Z

—————————————EDIT
I mean not the Rotation axis order in motion tab

2 Replies

If you mean which axis is pointing up…

Matrix rows 1 to 3 are the vectors of the X, Y, Z axes respectively. All you need to do is take the dot product of each of them (normalize to get rid of nonuniform scaling) with a z_axis axis vector, and see which of the 3 results has the maximum absolute value. That axis will be the “most aligned” to z-up axis. Afterwards check if the value is positive (pointing in the same direction) or negative (pointing away).

You can do the same with other axes to figure out where they are pointing.
Read up on dot product, it’s a very useful operation.

Maybe Zhalktis explain best but I sisn’t undrestand
Can anyone help me with this.