Quaternion
A full 3D rotation. Use it when the facing angle alone is not enough, for a vehicle on its side or upside down.
Definition
Section titled “Definition”type Quaternion = readonly [number, number, number, number];Values
Section titled “Values”| Value | Description |
|---|---|
[x, y, z, w] |
A unit quaternion. [0, 0, 0, 1] is no rotation. |