Skip to main content

Quaternion.RotateTowards(Quaternion from, Quaternion to, number maxDegreesDelta)

Rotates a rotation from towards to.

Parameters:

NameTypeDescription
fromQuaternionfrom
toQuaternionto
maxDegreesDeltanumberangular step

Returns:

typeDescription
Quaternionrotation

Usage

---@type Quaternion
local from;

---@type Quaternion
local to;

---@type number
local maxDegreesDelta;


local val0 = Quaternion:RotateTowards(from, to, maxDegreesDelta)