Quaternion.RotateTowards(Quaternion from, Quaternion to, number maxDegreesDelta)
Rotates a rotation from towards to.
Parameters:
Name | Type | Description |
---|---|---|
from | Quaternion | from |
to | Quaternion | to |
maxDegreesDelta | number | angular step |
Returns:
type | Description |
---|---|
Quaternion | rotation |
Usage
---@type Quaternion
local from;
---@type Quaternion
local to;
---@type number
local maxDegreesDelta;
local val0 = Quaternion:RotateTowards(from, to, maxDegreesDelta)