Set
7/14/25Less than 1 minute
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)