RotationOrder
The order of rotation axes used for Euler angles encoding of rotations.
Items 6
History | Name | Value | Description | |
---|---|---|---|---|
496 | XYZ | 0 | X, Y, Z order. | |
496 | XZY | 1 | X, Z, Y order. | |
496 | YZX | 2 | Y, Z, X order. | |
496 | YXZ | 3 | Y, X, Z order. | |
496 | ZXY | 4 | Z, X, Y order. | |
496 | ZYX | 5 | Z, Y, X order. |
Description
Euler angles encode a rotation in 3D space via a sequence of three rotations
along the X, Y, and Z axes. The RotationOrder
enum specifies the order in
which the engine performs these rotations.
To help visualize the many rotation orders, you can test them manually in Studio with the Rotate tool or by inserting task.wait() statements between individual rotations of a cube with a unique face:
1 2 3 4 5 6 7 8 9 |
|
An equivalent operation is:
1 2 3 4 |
|