Enum math.RotationOrder
Extrinsic rotation order. Specifies in which order rotations around the principal axes (x, y and z) are to be applied.
Namespace: Unity.Mathematics
Syntax
public enum RotationOrder : byte
Fields
| Name | Description | Value |
|---|---|---|
| XYZ | Extrinsic rotation around the x axis, then around the y axis and finally around the z axis. |
0 |
| XZY | Extrinsic rotation around the x axis, then around the z axis and finally around the y axis. |
1 |
| YXZ | Extrinsic rotation around the y axis, then around the x axis and finally around the z axis. |
2 |
| YZX | Extrinsic rotation around the y axis, then around the z axis and finally around the x axis. |
3 |
| Default | Unity default rotation order. Extrinsic Rotation around the z axis, then around the x axis and finally around the y axis. |
4 |
| ZXY | Extrinsic rotation around the z axis, then around the x axis and finally around the y axis. |
4 |
| ZYX | Extrinsic rotation around the z axis, then around the y axis and finally around the x axis. |
5 |