How Does Math Relate to Video Games?
TIME : 2016-01-07
How Does Math Relate to Video Games?
Almost everything in a game is math before it is anything a player sees.
Where it shows up
- Geometry and vectors position every object and decide which way it faces.
- Trigonometry handles camera rotation, aiming and field of view.
- Linear algebra drives the transformations that move a 3D model from world space to your screen.
- Physics needs calculus and numerical methods for gravity, collisions and ragdolls.
- Probability governs loot drops, critical hits and enemy behaviour.
- Pathfinding relies on graph theory and algorithms like A* to get enemies around corners.
Get the maths wrong and the game does not merely look odd, it breaks. A misplaced decimal in a physics calculation is how characters end up launching into orbit. Programming is applied mathematics with a rendering pipeline attached.