Vector2

Object that represents a 2D position.

Constructors

V2(number X, number Y)

Properties

number xX component of the vector
number yY component of the vector

Static properties

Vector2 zeroShorthand for writing V2(0, 0, 0)

Examples

local position = V2(10, 5);

local zero = Vector2.zero;