Courses / Specialisations & media / Game Physics & Math

₹299Self-paced

Game Physics & Math

Build and test a small game-physics simulation in Python, from vectors and fixed-step integration to collision response, and deliver a stability report with measured values.

  • Who it's for. Programmers who write Python and want to understand and test the maths behind game movement, collisions and steering; no game engine or earlier physics course is needed.
  • Before you start. Course Mathematics for Programmers or equivalent: vectors and matrices, floating-point comparison and seeded simulation checked with tolerances.
  • 28 to 47 hours of study with practice
  • 9 modules, 55 lessons
  • 3 guided projects and a final project

What you'll learn

  • Convert points between local and world frames using vectors, rotation matrices and unit quaternions.
  • Step a simulation with explicit Euler, semi-implicit Euler and velocity Verlet in a fixed-timestep loop and measure their energy behaviour.
  • Detect collisions between circles, boxes and convex polygons and return contact manifolds.
  • Resolve contacts with restitution, friction and positional-correction impulses and keep stacks stable with sub-stepping and sleeping.
  • Write tests for conservation, energy bounds, determinism and convergence order and deliver a stability report for a small collision world.

Skills you'll gain

  • Vectors
  • rotations
  • coordinate frames
  • Time integration
  • the fixed-step loop
  • Kinematics
  • damping
  • interpolation
  • Forces
  • springs
  • friction
  • impulses
  • manifolds
  • rays

Tools you'll use

  • Python
  • Python unit tests

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 9 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 3 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 3

    Maths and time-stepping

    Work with vectors, rotations and frames, run integrators inside a fixed-step loop, and predict and damp motion.

    You build: A maths and time-stepping toolkit with unit tests, a fixed-step World with three integrators and closed-form comparisons.

  2. 02

    Modules 4 to 6

    Forces and collisions

    Turn forces, springs and friction into accelerations, detect collisions with manifolds and rays, and resolve them with impulses.

    You build: A rigid-body and collision core returning manifolds for circles, boxes and convex polygons, with a sequential impulse solver.

  3. 03

    Modules 7 to 9

    Stability, steering and the report

    Add constraints, sub-steps and sleeping, compute steering and path costs with reproducible randomness, then test and report.

    You build: A stable, tested simulation with a stability report showing numeric limits, measured values and verdicts.

Full curriculum

9 modules and 55 lessons, 28 to 47 hours of study

01Vectors, rotations and coordinate frames7 lessons, 3 to 5 hours

Lessons

  • Positions, displacements and velocity as 2D vectors
  • Length, unit vectors and the zero-vector guard
  • Dot product: angle tests, projection and field of view
  • 2D cross product: signed area, winding and which side of a line
  • Rotating a point: sine, cosine, atan2 and the 2x2 rotation matrix
  • Local and world coordinates and the order of composed transforms
  • Quaternions in 3D: axis-angle rotation, composition order and drift

After this module you can

  • Compute displacement, midpoint and scaled-velocity updates with a small Vec2 class and say which results are points and which are directions.
  • Compute vector length, normalise a direction and rescale it to a requested length, with a defined result when the vector is too short to normalise.
  • Build unit quaternions from axis and angle, rotate 3D vectors, compose two rotations in both orders, and renormalise a quaternion that has drifted.
02Time integration and the fixed-step loop6 lessons, 3 to 4 hours

Lessons

  • A fixed step makes a simulation a pure function of the step count
  • Explicit Euler: first-order error on a thrown object
  • Semi-implicit Euler: stable oscillation where explicit Euler explodes
  • Verlet integration: positions without stored velocity
  • The accumulator loop: consuming real time in fixed steps
  • Interpolating render state with the accumulator remainder

After this module you can

  • Show that a simulation advanced with a constant time step yields the same state after N steps in every run, and predict the position after N steps by hand.
  • Measure the position error of explicit Euler against the closed-form solution for constant acceleration and show it shrinks in proportion to the step size.
  • Compute the blend factor alpha from the accumulator and render a position between the previous and current physics states.
03Kinematics, damping and interpolation6 lessons, 3 to 4 hours

Lessons

  • Projectile motion: closed form versus stepped simulation
  • Aiming: the launch angle that hits a target at the same height
  • Frame-rate independent damping with exponential decay
  • Clamping speed and moving a value toward a target
  • Circular motion: angular velocity, centripetal acceleration and integrator drift
  • Interpolation and easing: lerp, smoothstep and smoothing that survives frame-rate change

After this module you can

  • Compute position at a given time and the flight time, apex height and range of a launched projectile in closed form and compare with a fixed-step simulation.
  • Solve for the two launch angles that reach a target at a given distance and speed, and report no solution when the target is out of range.
  • Apply linear interpolation, the smoothstep curve and exponential smoothing to values, and verify that smoothing gives the same result at any frame rate.
04Forces, springs, friction and impulses6 lessons, 3 to 4 hours

Lessons

  • Newton's second law with force accumulators and inverse mass
  • Gravity and drag: terminal velocity from force balance
  • Springs and damping: Hooke's law, period and the stable step
  • Friction: Coulomb limits, sliding on slopes and stopping without reversing
  • Torque and moment of inertia: turning a body with an off-centre push
  • Impulses versus forces: instant velocity changes that do not depend on the step

After this module you can

  • Sum several forces on a body each step, convert the sum to acceleration with inverse mass, clear the accumulator, and treat a static body as inverse mass zero.
  • Model constant gravity with linear and quadratic drag, find the terminal speed from force balance, and confirm the stepped simulation approaches it.
  • Convert between impulse and velocity change, show that a one-frame force depends on the step while an impulse does not, and apply an impulse to a body.
05Collision geometry: detection, manifolds, rays and broad phase6 lessons, 3 to 4 hours

Lessons

  • Circle versus circle: overlap, depth and contact normal
  • Axis-aligned boxes: overlap on each axis and the shortest push-out axis
  • Circle versus box: closest point, and the centre-inside case
  • Convex polygons: the separating axis test and minimum translation vector
  • Raycasts: slab test for boxes and the quadratic for circles
  • Broad phase: grid cells, candidate pairs and the cost of testing everything

After this module you can

  • Test two circles for overlap and return a manifold with penetration depth and a unit normal pointing from the first circle to the second.
  • Test two AABBs for overlap by comparing intervals on x and y, and return the axis and direction with the smallest overlap as the minimum translation.
  • Count candidate pairs with and without a uniform grid and implement a grid that returns only pairs sharing a cell.
06Collision response: impulses, friction and contact resolution6 lessons, 3 to 4 hours

Lessons

  • Normal impulse and restitution for a body hitting a surface
  • Two moving bodies: momentum is conserved and energy depends on restitution
  • Positional correction: slop and percent to remove penetration without jitter
  • Friction impulses: Coulomb clamp along the contact tangent
  • Sequential impulses: several contacts, iteration order and convergence
  • Resting contact, static bodies and the restitution threshold

After this module you can

  • Compute the normal impulse for a collision from relative velocity, restitution and inverse masses, and apply it to bodies.
  • Resolve a collision between two dynamic bodies and verify momentum conservation and the kinetic-energy change for different restitution values.
  • Switch off restitution below a speed threshold so a bouncing ball settles, and count the bounces for different restitution values.
07Constraints, stability and sub-stepping6 lessons, 3 to 5 hours

Lessons

  • Distance constraints by position projection
  • Relaxing a chain: iterations, pinned ends and how many sweeps are enough
  • Measuring energy drift to compare integrators
  • Stiff springs, the stability limit and choosing sub-steps
  • Tunnelling: when speed times step exceeds thickness, and sub-steps versus swept tests
  • Sleeping bodies and contact islands

After this module you can

  • Satisfy a rod-like distance constraint between two particles by moving them along the line joining them in proportion to inverse mass.
  • Relax a chain of distance constraints with repeated sweeps and measure the largest remaining stretch after each sweep to choose an iteration count.
  • Group bodies into islands from the contact graph with a union-find, and decide when an island may sleep and when touching wakes it.
08Steering, pathfinding costs, randomness and noise6 lessons, 3 to 5 hours

Lessons

  • Seek and arrive: desired velocity minus current velocity
  • Grid pathfinding costs: admissible heuristics and what A* guarantees
  • Seeded random streams: reproducible sequences and independent generators
  • Sampling correctly: uniform discs and weighted choice
  • Value noise: hashed lattice values and smooth interpolation
  • Floating-point order and determinism: sums, digests and what to compare

After this module you can

  • Compute a seek steering force as desired minus current velocity limited by a maximum force, and slow down inside an arrival radius.
  • Compute the exact cost of an open-grid route with diagonals, choose an admissible heuristic, and explain what happens with an overestimating heuristic.
  • Show that summing in a different order changes a result, use compensated summation where needed, and hash a state trace to detect any change.
09Simulation tests, convergence and the stability report6 lessons, 3 to 4 hours

Lessons

  • Conservation tests: momentum after a collision within a tolerance
  • Energy-bound tests for a bouncing ball
  • Golden runs: determinism tests with state digests
  • Convergence tests: halving the step to measure the order of accuracy
  • Stress scenarios: resting ball, penetration limits and regression thresholds
  • The stability report: assembling measurements into a pass or fail summary

After this module you can

  • Write a test that checks total momentum before and after a collision for fixed cases and for many seeded random pairs, with a justified tolerance.
  • Test that a bouncing ball's energy never increases across impacts and that its apex heights follow the restitution factor within a stated tolerance.
  • Combine conservation, energy, determinism, convergence and stress results into one report with stated limits, measured values and a clear pass or fail line for each.

What you'll build

3 guided projects along the way, then a final project.

  • Math and time-stepping toolkit

    after module 3
  • Rigid-body and collision core

    after module 6
  • Stable, tested simulation with a report

    after module 9

Final project

A tested simulation you choose from a stacking and bouncing world, a projectile range with swept collision, or steering agents with deterministic replay, plus a generated stability report.

What you submit

A repository or archive with the Python modules, a tests folder, a README with setup instructions, saved scenario parameters, seeds and a golden digest, and the stability report.

How it's reviewed

A trainer-reviewed demonstration in which you explain the report, change one parameter live, predict which row changes and rerun.

Where you'll use it

  • Diagnose why objects tunnel through thin walls or jitter at rest, and pick a step size or swept test that fixes it.
  • Write deterministic replay tests so a gameplay simulation gives the same result on every run.

Roles that use these skills

  • Game programmer
  • Gameplay physics programmer
  • Simulation developer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need a game engine?

No. The course uses Python and its unit tests; no game engine is required.

Will the course teach Python?

No. You should already write short Python functions and classes and run tests from a terminal.

What if I struggle with the diagnostic?

The entry requirements advise completing the earlier course or an equivalent first.

Be first in when Game Physics & Math opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
₹299Opens soon
Notify me