Vector 3, or Vector 2?

For my scripts, should I use Vector 3 or Vector 2? what is the difference because in the api I don’t understand this thing.

2 Likes

Vector3s represent a point in 3D space, Vector2s represent a point in 2D space.

Vector3s have 3 properties: X, Y, and Z.

Vector2s only have 2: X, and Y.

Basically Vector3s have depth as well. All the characteristics of a Vector type are shared between the two types though. (all member functions and properties, like magnitude, unit, etc.)

2 Likes

Vector3 is for 3d space and Vector2 is for 2d space

Thank you for taking the time to respond, thank you.

1 Like

Thank you too for taking the time to respond.