Skip to content

Api > Vector2 > Set()


Vector2.Set(number newX, number newY)⚓︎

Set x and y components of an existing Vector2.

Parameters:⚓︎

Name Type Description
newX number newX
newY number newY

Usage⚓︎

---@type Vector2
local vector2;

---@type number
local newX;

---@type number
local newY;


vector2.Set(newX, newY)