Skip to main content

Quaternion.Set(number newX, number newY, number newZ, number newW)

Set x, y, z and w components of an existing Quaternion.

Parameters:

NameTypeDescription
newXnumbernew X
newYnumbernew Y
newZnumbernew Z
newWnumbernew W

Usage

---@type Quaternion
local quaternion;

---@type number
local newX;

---@type number
local newY;

---@type number
local newZ;

---@type number
local newW;


quaternion.Set(newX, newY, newZ, newW)