Practical math for real-time games
Understand the math and physics behind game development.
A clear, accessible reference for students, indie devs, and professionals. Every formula includes intuition, variable breakdowns, game-development use cases, and implementation-ready JavaScript and C++ code.
- Clear explanations
- Intuition before notation.
- Dual code
- JavaScript and C++ examples.
- Practical cautions
- Tips, warnings, and pitfalls.
Example formula
Dot Product
A simple operation that answers a powerful gameplay question: are two directions aligned?
Core topics
Start with the fundamentals
Explore the formulas most commonly used in movement, physics, collisions, and camera systems.
Vectors & Movement
The foundation of positions, directions, velocity, steering, and spatial reasoning in games.
Kinematics & Physics
Motion equations for velocity, acceleration, gravity, projectiles, and time-stepped simulation.
Collision & Geometry
Distance, intersection, and spatial tests that power hit detection, triggers, and gameplay logic.
Camera & Interpolation
Smoothing, blending, easing, and frame-rate-aware interpolation used for cameras and animation.
For every stage
Built for learners and practitioners
Students
Learn what symbols mean, why formulas work, and how they map to game behavior.
Intermediate developers
Bridge theory to implementation with clear code patterns and common pitfalls.
Professionals
Use it as a quick reference for correctness, units, performance, and edge cases.