Skip to main content

Quaternion.SetLookRotation(Vector3 view, Vector3 up = Vector3.up)

Creates a rotation with the specified forward and upwards directions.

Parameters:

NameTypeDescription
viewVector3The direction to look in.
upVector3The vector that defines in which direction up is.

Usage

---@type Quaternion
local quaternion;

---@type Vector3
local view;

---@type Vector3
local up;


quaternion.SetLookRotation(view, up)