Game dev
Saved & recent

Scalar

Related terms: vector, magnitude, speed

A single number that describes an amount: a speed, a temperature, a mass or a damage value. It has no direction. A vector has several components and can describe a direction as well as an amount.

Multiply a vector by a scalar to scale its length. A unit direction times a speed of 5 gives a velocity of 5 units per second. A negative multiplier reverses the direction.

Further reading
LearnOpenGL: Transformations: vectors and scalar multiplication
5 m/s 10 m/s unit direction twice the speed
Multiplying the same unit direction by 5 and 10 doubles the speed. Both velocity arrows point right.

View in the full Game dev collection