Function: lookAtRotation()
lookAtRotation(
forward
,up
,target
):Quaternion
Defined in: src/utils/RotationUtils.ts:44
Creates a rotation such that forward (0, 0, -1) points towards the forward vector and the up direction is the normalized projection of the provided up vector onto the plane orthogonal to the target.
Parameters
forward
Forward vector
up
Up vector
target
Quaternion
= ...
Output