Math for Game Programmers: Building a Better Jump | GDC

Added:

Feel-First Kinematic Tuning and Physics 'Cheating'

While mathematical parabolic equations provide a realistic baseline for jumps, many game designers argue that pure physics-based models feel unresponsive, floaty, and frustrating to players. Instead, they advocate for 'feel-first' design, which prioritizes player agency over physical accuracy. This approach relies on 'kinematic' movement and breaking the laws of physics using artificial assists. Techniques include 'Coyote Time' (allowing jumps after leaving a ledge), input buffering, variable gravity (falling faster than rising to prevent floatiness), and instant velocity overrides based on button-press duration. In critically acclaimed platformers like *Celeste*, jump mechanics are driven by complex, empirical state machines and intentional physics 'cheats' rather than clean, continuous parabolic integration, proving that game feel often trumps mathematical realism.

Basic Kinematics: Understanding the algebraic relationships between displacement, velocity, constant acceleration, and gravity.
Quadratic Equations and Parabolas: Familiarity with the vertex form of a parabola and solving quadratic formulas for time and distance.
Vector Mathematics: Working with 2D vectors (X and Y coordinates) to represent position, velocity, and forces in a game space.
Numerical Integration in Games: Basic understanding of Euler integration (how game engines update velocity and position per frame).
Variable Jump Height and Input: Implementing game logic that alters gravity or velocity based on the duration of the jump button press.
Air Control and Trajectory Modification: Designing mechanics that allow players to influence their horizontal movement and steering while airborne.
Coyote Time and Jump Buffering: Adding standard 'game feel' enhancements that allow jumping slightly after leaving a platform or caching input just before landing.
Advanced Physics Integration: Progressing to more stable numerical integration techniques, such as Verlet integration or Runge-Kutta (RK4), for complex simulation.
502.9K views12.1Klikes25:43@GDCFestivalofGamingOriginal Release: 2016-12-12

This video explains how to construct natural-feeling jump trajectories in video games by deriving mathematical parameters (gravity and initial velocity) from designer-friendly inputs like desired jump height and distance, rather than starting with arbitrary physics constants; the approach leverages the parabolic nature of projectile motion under constant gravity, where the trajectory can be described using the equation f(t) = ½Gt² + V₀t + P₀, and designers can calculate the necessary physics values by defining constraints such as jump height H and duration T_H, then applying integration methods like Euler or Velocity Verlet to simulate the jump in code while optionally breaking physics rules (like increasing gravity beyond the peak) to create unique character feels.