---
id: "sequential-impulses"
title: "Sequential impulses (rigid bodies)"
aliases: [PGS, projected Gauss-Seidel]
domain: "simulation"
stage: "simulation"
realtime: "realtime"
platforms: [cpu, webgl2, webgpu, unity, godot]
year_introduced: 2006
inputs: [mesh]
outputs: [animation]
style: "both"
dynamic: "dynamic"
cost: "cheap"
authority: "Catto"
url: "https://texelatlas.vercel.app/t/sequential-impulses/"
sources_verified_at: "2026-11-29"
---
# Sequential impulses (rigid bodies) (Catto)

> Iterative velocity-level rigid-body solver: apply impulses to each contact and joint constraint in turn, with warm starting, which is the core of Box2D and many game engines.

## Reach for it when

- box stacks wobble or collapse in my physics
- need stable contacts and joints for game rigid bodies
- rigid body solver that handles many constraints iteratively
- objects jitter at rest on the ground
- build a box2d-style physics engine

## How it works

Each step finds contact manifolds, then builds velocity constraints (normal, friction, joints) in terms of Jacobians. Constraints are solved one at a time, applying an impulse that drives its relative velocity to the target, clamped to a valid range (non-negative normal impulse, friction within the Coulomb cone), and accumulated across iterations. Warm starting reuses last frame's accumulated impulses so stacks converge in a handful of iterations. Position error is corrected either by Baumgarte stabilisation (adds bias velocity) or by a separate position solve. Sleeping islands and a persistent contact cache keep it fast. It is projected Gauss-Seidel on the velocity-level LCP.

## When to use it

Choose it for stacking, joints and general game rigid bodies. Prefer [Soft Step solver / substepping](https://texelatlas.vercel.app/t/soft-step-solver.md) for the modern Box2D v3 approach with substeps and soft constraints, [MuJoCo articulated-body dynamics with convex contacts](https://texelatlas.vercel.app/t/mujoco-articulated-dynamics.md) for robotics and articulated mechanisms in reduced coordinates, and [Verlet integration with relaxation constraints](https://texelatlas.vercel.app/t/verlet-integration-constraints.md) for loose particle chains where stacking fidelity isn't needed.

## Cost

cheap — Linear in constraints x iterations; cheap per body.

## Failure modes

- Baumgarte stabilisation adds energy: objects jitter or pop out of penetration
- Iteration limits give soft, squishy stacks and slow tall towers
- Joint chains with large mass ratios stretch
- Restitution plus warm starting gives energy gain on resting contacts if not handled

## Engine support

- babylonjs: official — `@babylonjs/havok with new BABYLON.HavokPlugin(true, havokInstance) via scene.enablePhysics(...)` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Physics/v2/Plugins/havokPlugin.ts, checked 2026-12-01)
- blender: builtin — `Scene Properties > Rigid Body World > Solver Iterations (Bullet impulse solver)` (evidence: https://docs.blender.org/manual/en/5.2/physics/rigid_body/world.html, checked 2026-12-01)
- godot: builtin — `Built-in JoltPhysics3D (Project Settings > Physics > 3D > Physics Engine = Jolt Physics) and GodotPhysics3D` (evidence: https://github.com/godotengine/godot/blob/4.7.2-stable/modules/jolt_physics/jolt_project_settings.cpp, checked 2026-12-01)
- unity: builtin — `Project Settings > Physics > Default Solver Iterations (Physics.defaultSolverIterations; PhysX iterative velocity-level constraint solver)` (evidence: https://docs.unity3d.com/6000.0/Documentation/ScriptReference/Physics-defaultSolverIterations.html, checked 2026-12-01)
- unreal: builtin — `Chaos Physics iterative rigid-body solver (BodyInstance.position_solver_iteration_count and velocity_solver_iteration_count)` (evidence: https://dev.epicgames.com/documentation/en-us/unreal-engine/python-api/class/BodyInstance, checked 2026-12-01)

## Dataflow

- Inputs: mesh
- Outputs: animation
- Platforms: cpu, webgl2, webgpu, unity, godot

## Lineage

- extended by [Soft Step solver / substepping](https://texelatlas.vercel.app/t/soft-step-solver.md)

## Combination ideas

- [Captured rooms you can bump into](https://texelatlas.vercel.app/ideas/walkable-captured-scenes/)

## Sources

1. [primary] Erin Catto Fast and Simple Physics using Sequential Impulses. GDC 2006. https://box2d.org/files/ErinCatto_SequentialImpulses_GDC2006.pdf (verified via http on 2026-11-29)
2. [primary] Erin Catto Modeling and Solving Constraints. GDC 2009. https://box2d.org/files/ErinCatto_ModelingAndSolvingConstraints_GDC2009.pdf (verified via http on 2026-11-29)
3. [implementation] erincatto (2015) erincatto/box2d. https://github.com/erincatto/box2d License: MIT. (verified via github on 2026-11-29)
4. [implementation] dimforge (2020) dimforge/rapier. https://github.com/dimforge/rapier License: Apache-2.0. (verified via github on 2026-11-29)

## Cite this entry

Texel. "Sequential impulses (rigid bodies)." https://texelatlas.vercel.app/t/sequential-impulses/ (accessed 2026-12-01).
