Maths and Physics for Game Developers
Maths and physics for games is the geometry and mechanics that move and collide objects. Vectors describe position and direction, matrices transform objects between coordinate spaces, quaternions represent 3D rotation without gimbal lock, and collision, rigid-body physics and steering behaviours drive realistic motion.
Stage: Programming and Maths for Games · Part of the Game Developer roadmap · Last reviewed 19 November 2026
What to learn in Maths and Physics
- Normalise a vector and use the dot product to find an angle
- Compute a direction toward a target using vector subtraction
- Explain why quaternions are preferred over Euler angles
- Detect overlap between axis-aligned boxes or circles
- Write a seek or flee steering behaviour for an agent
Maths and Physics interview questions
What does the dot product tell you in a game?
The dot product of two normalised vectors equals the cosine of the angle between them. It is 1 when they point the same way, 0 when perpendicular and negative when opposite, so it is used for field-of-view checks and lighting.
What is gimbal lock?
Gimbal lock happens with Euler angles when two rotation axes line up, so one degree of freedom is lost and rotation behaves unexpectedly. Quaternions avoid it and also interpolate smoothly with slerp, which is why engines use them internally.
Where Maths and Physics fits in the Game Developer roadmap
Maths and Physics belongs to the Programming and Maths for Games stage (beginner level), which takes about 4 hours. Core skills.
Other units in this stage
Back to the full Game Developer roadmap