openskills.info
Course Preview

Game Mathematics

Game mathematics is the vector, trigonometry, matrix, and geometry math that game engines use to position, rotate, move, and collide objects on screen. It is the calculation layer under features like character movement, camera control, aiming, and physics response, expressed through engine types such as vectors, transforms, and quaternions.

itSoftware engineering

Recommended first:game-engine-fundamentals

Game Mathematics

Game mathematics is the set of vector, trigonometry, matrix, and geometry techniques that determine where objects are, which way they face, how they move, and whether they touch. A game engine exposes this layer through classes such as Godot's Vector3 and Transform3D, Unity's Vector3 and Quaternion, or Unreal Engine's FVector and FTransform. Underneath those classes, the same mathematical operations recur across every engine: addition, dot products, cross products, matrix composition, and rotation interpolation. Understanding that shared layer lets you read engine documentation critically, debug incorrect movement or rotation, and choose the right representation for a given problem instead of copying a snippet that happens to work.

Coordinate spaces and vectors

A vector represents a magnitude and a direction, stored as coordinates such as (x, y) in 2D or (x, y, z) in 3D. A vector carries no position of its own; the same vector (3, 0) can describe a displacement starting from any point in the world. Godot's documentation states plainly that vectors "only represent relative direction and magnitude," which is why a velocity vector and a position vector use the same data type but mean different things depending on how the game code uses them.

Games work with several coordinate spaces at once:

  • Local (or object) space places coordinates relative to an object's own origin and orientation.
  • World (or global) space places coordinates relative to one shared origin for the whole scene.
  • Screen space places coordinates relative to the rendered viewport, after the camera's projection has been applied.

An object's transform converts its local-space geometry into world space so the renderer and physics system can compare it against everything else in the scene.

Core vector operations

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources