What is a Vector2?

I have been using Vector3 lately and wondered, what is Vector2 and what does it do?

I am also wondering what Vector2int is…

If anyone could explain or link another forum that would be a great help!

2 Likes

Vector2 is just Vector3 without the Z (2d stuff)

Vector2int16 is the same as Vector2 but uses signed 16-bit integers for its components, doesn’t seem to have too much of a use though,

3 Likes

Thanks so much for the reply, so Vector2 is just X and Y values then?

Yes. AnchorPoint, for example.

1 Like

Oh alright, I get it now. Does it relate to UDim2 or are they completely different?

They are different,
Vector2: 0,0
UDim2: {0,0},{0,0}

(In properties)

Basically UDim2 has scale and offset for X and Y, while Vector2 doesn’t.

2 Likes

Oh right, ok thanks for the help!

1 Like