sm.quat.lookRotation

Create a new quaternion from direction vectors. DEPRECATED

Kind: Function

Environments: Game, Terrain

Game

sm.quat.lookRotation( at, up )

Open the full Game reference

Parameters:

Name Type Description
at Vec3 The forward vector.
up Vec3 The up vector.

Returns:

Type Description
Quat The quaternion.

Terrain

sm.quat.lookRotation( at, up )

Open the full Terrain reference

Parameters:

Name Type Description
at Vec3 The forward vector.
up Vec3 The up vector.

Returns:

Type Description
Quat The quaternion.