Welcome to GameDevMath
Instant visualizers and copy-pasteable math snippets for indie game engines.
2D Direction to Target
Calculate direction vectors, normalized values, distance, and angles. Copy snippets for Unity, Godot, Raylib, and Bevy.
Lerp Visualizer
See how Linear Interpolation works. Discover the trick to frame-rate independent smoothing.
Dot Product & FOV
Visualize vision cones and vector projections. Essential for stealth mechanics and lighting.
Hex Grid Coordinates
Master Pointy-Topped Axial coordinates! Features an interactive teaching tool and coordinate guessing mini-game.
2D Rotation Matrix
Spin vectors around the origin like a true mathemagician. Copy matrix scripts for Unity, Godot, Raylib, and Bevy.
Projectile Motion
Calculate exact physics trajectories, jump arcs, and target predictions via fully interactive velocity vectors.
Raycasting & AABB Collision
Visualize exact physical intersection points and surface normal reflection vectors using the 2D Slab Method.
Isometric Grid Math
Project 2D matrices into 2.5D space. Discover exactly how to map raw screen pixels back into tile coordinates.
Platformer Jump Arcs
Inverse kinematics to calculate exact gravity multipliers for precise pixel-perfect platforming arcs.
RPG Experience Curves
Generate smooth exponential levels. Instantly compute the Inverse Logarithmic translation matrices.
3D Cross Product
Evaluate 3D surface normals and rotational torque vectors perfectly perpendicular to geometry planes.