Skip to main content

Quaternion.Euler(number x, number y, number z)

Returns a rotation that rotates z degrees around the z axis, x degrees around the x axis, and y degrees around the y axis; applied in that order.

Parameters:

NameTypeDescription
xnumberx
ynumbery
znumberz

Returns:

typeDescription
Quaternion

Usage

---@type number
local x;

---@type number
local y;

---@type number
local z;


local val0 = Quaternion:Euler(x, y, z)