Game dev
Saved & recent

Vector

A list of numbers that describes a direction and a length. In 2D it has two parts, (x, y). In 3D it has three, (x, y, z).

The same type is used for positions, velocities, forces and colors. Multiply velocity by delta time and add the result to position to move an object.

Further reading
LearnOpenGL: Transformations: vectors
X Y 5 units 3 units vector (5, 3)
The arrow (5, 3) reaches five units along X and three along Y.

View in the full Game dev collection