Quat.safeNormalize

Normalizes a quaternion with safety, ie. converts to a unit quaternion of length 1.

Kind: Function

Environments: Game, Terrain

Game

quat:safeNormalize( fallback )

Open the full Game reference

Parameters:

Name Type Description
quaternion Quat The quaternion.
fallback Quat The fallback quaternion

Returns:

Type Description
Quat The normalized quaternion.

Terrain

quat:safeNormalize( fallback )

Open the full Terrain reference

Parameters:

Name Type Description
quaternion Quat The quaternion.
fallback Quat The fallback quaternion

Returns:

Type Description
Quat The normalized quaternion.