BBMOD_Quaternion.FromLookRotation

A function defined in BBMOD_Quaternion.gml

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 © 2024, BlueBurn. Built on January 21, 2024 using GMDoc.