Quaternion.SetLookRotation(Vector3 view, Vector3 up = Vector3.up)
Creates a rotation with the specified forward and upwards directions.
Parameters:
Name | Type | Description |
---|---|---|
view | Vector3 | The direction to look in. |
up | Vector3 | The 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)