Vector3(number x, number y, number z)⚓︎
Creates a new vector with given x, y, z components.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
x | number | X component of the vector. |
y | number | Y component of the vector. |
z | number | Z component of the vector. |
Usage⚓︎
---@type number
local x;
---@type number
local y;
---@type number
local z;
local vector3 = Vector3(x, y, z);
Example⚓︎
local position = Vector3(1, 5.3, 3);