Back to Writing
NOTESgame-mathvectorsquaternionslinear-algebra

Game Math (3): Essential Concepts for Game Development

October 8, 2019Updated Feb 17, 2026

Game Math covers the mathematical concepts used in game development.

Key topics:

  1. Vectors: Direction and magnitude
  2. Matrices: Transformations (rotation, scaling, translation)
  3. Quaternions: 3D rotation without gimbal lock
  4. Trigonometry: Sine, cosine, tangent
  5. Interpolation: Linear interpolation, smoothstep
  6. Physics: Velocity, acceleration, collision detection

Example (distance calculation):

Vector3 pos1 = new Vector3(0, 0, 0);
Vector3 pos2 = new Vector3(3, 4, 0);
float distance = Vector3.Distance(pos1, pos2); // 5

Example (rotation using Quaternion):

Quaternion rotation = Quaternion.Euler(0, 90, 0);
Vector3 newDirection = rotation * Vector3.forward; // points right

Understanding game math is essential for effective game development.