Skip to main content

Vector2.Set(number newX, number newY)

Set x and y components of an existing Vector2.

Parameters:

NameTypeDescription
newXnumbernewX
newYnumbernewY

Usage

---@type Vector2
local vector2;

---@type number
local newX;

---@type number
local newY;


vector2.Set(newX, newY)