Skip to main content

Quaternion.AngleAxis(number angle, Vector3 axis)

Creates a rotation which rotates angle degrees around axis.

Parameters:

NameTypeDescription
anglenumberangle
axisVector3axis

Returns:

typeDescription
Quaternionrotation

Usage

---@type number
local angle;

---@type Vector3
local axis;


local val0 = Quaternion:AngleAxis(angle, axis)