FromLookRotation

function

FromLookRotation(_forward, _up)

Description

Initializes the quaternion using a forward and an up vector. These vectors must not be parallel! If they are, the quaternion will be set to an identity.

Arguments

Name Type Description
_forward Struct.BBMOD_Vec3 The vector facing forward.
_up Struct.BBMOD_Vec3 The vector facing up.

Returns

Struct.BBMOD_Quaternion Returns self.

Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on May 16, 2022 using GMDoc.