Skip to content

Quaternion

A full 3D rotation. Use it when the facing angle alone is not enough, for a vehicle on its side or upside down.

type Quaternion = readonly [number, number, number, number];
Value Description
[x, y, z, w] A unit quaternion. [0, 0, 0, 1] is no rotation.