sm.quat

A quaternion is used to represent rotation as a generalization of complex numbers.

Kind: API page

Environments: Game, Terrain

Game

Open the full Game reference

To create one, use sm.quat.new.

Warning: It is uncommon to modify individual X, Y, Z, W components directly. To create a new quaternion, consider using sm.vec3.getRotation.

Terrain

Open the full Terrain reference

To create one, use sm.quat.new.

Warning: It is uncommon to modify individual X, Y, Z, W components directly. To create a new quaternion, consider using sm.vec3.getRotation.