{
 "id": "sequential-impulses",
 "title": "Sequential impulses (rigid bodies)",
 "aliases": [
  "PGS",
  "projected Gauss-Seidel"
 ],
 "domain": "simulation",
 "subdomain": "rigid body",
 "stage": "simulation",
 "realtime": "realtime",
 "platforms": [
  "cpu",
  "webgl2",
  "webgpu",
  "unity",
  "godot"
 ],
 "year_introduced": 2006,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "animation"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "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.",
 "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": "Choose it for stacking, joints and general game rigid bodies. Prefer `soft-step-solver` for the modern Box2D v3 approach with substeps and soft constraints, `mujoco-articulated-dynamics` for robotics and articulated mechanisms in reduced coordinates, and `verlet-integration-constraints` for loose particle chains where stacking fidelity isn't needed.",
 "cost": {
  "class": "cheap",
  "notes": "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"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://box2d.org/files/ErinCatto_SequentialImpulses_GDC2006.pdf",
   "type": "web",
   "title": "Fast and Simple Physics using Sequential Impulses",
   "authors": [
    "Erin Catto"
   ],
   "year": null,
   "venue": "GDC 2006",
   "url": "https://box2d.org/files/ErinCatto_SequentialImpulses_GDC2006.pdf",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20260918001935/https://box2d.org/files/ErinCatto_SequentialImpulses_GDC2006.pdf",
     "timestamp": "20260918001935"
    },
    "page_title": null,
    "host": "box2d.org",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://box2d.org/files/ErinCatto_SequentialImpulses_GDC2006.pdf → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "cattofast"
  },
  {
   "role": "primary",
   "key": "url:https://box2d.org/files/ErinCatto_ModelingAndSolvingConstraints_GDC2009.pdf",
   "type": "web",
   "title": "Modeling and Solving Constraints",
   "authors": [
    "Erin Catto"
   ],
   "year": null,
   "venue": "GDC 2009",
   "url": "https://box2d.org/files/ErinCatto_ModelingAndSolvingConstraints_GDC2009.pdf",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20260907082818/https://box2d.org/files/ErinCatto_ModelingAndSolvingConstraints_GDC2009.pdf",
     "timestamp": "20260907082818"
    },
    "page_title": null,
    "host": "box2d.org",
    "title_confirmed_by_page": false,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://box2d.org/files/ErinCatto_ModelingAndSolvingConstraints_GDC2009.pdf → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "research-draft",
     "endpoint": "title_hint/author_hint, checked against page title where available",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "cattomodeling"
  },
  {
   "role": "implementation",
   "key": "gh:erincatto/box2d",
   "type": "code",
   "title": "erincatto/box2d",
   "description": "Box2D is a 2D physics engine for games",
   "authors": [
    "erincatto"
   ],
   "year": 2015,
   "venue": "GitHub",
   "url": "https://github.com/erincatto/box2d",
   "ids": {
    "repo": "erincatto/box2d"
   },
   "license": "MIT",
   "extra": {
    "stars": 10521,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-29T07:18:43Z",
    "language": "C",
    "homepage": "https://box2d.org",
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/box2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "erincatto2015erincatto"
  },
  {
   "role": "implementation",
   "key": "gh:dimforge/rapier",
   "type": "code",
   "title": "dimforge/rapier",
   "description": "2D and 3D physics engines focused on performance.",
   "authors": [
    "dimforge"
   ],
   "year": 2020,
   "venue": "GitHub",
   "url": "https://github.com/dimforge/rapier",
   "ids": {
    "repo": "dimforge/rapier"
   },
   "license": "Apache-2.0",
   "extra": {
    "stars": 6145,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-11-01T21:48:29Z",
    "language": "Rust",
    "homepage": "https://rapier.rs",
    "license_name": "Apache License 2.0"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/dimforge/rapier",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "dimforge2020dimforge"
  }
 ],
 "presets": [],
 "related": [
  "soft-step-solver",
  "mujoco-articulated-dynamics",
  "verlet-integration-constraints",
  "xpbd"
 ],
 "extends": [],
 "supersedes": [],
 "combines_with": [],
 "provenance": {
  "prose": "original text written for this index (research draft, editorially reviewed)",
  "sources_verified_at": "2026-11-29T15:51:27.588Z",
  "draft": "data/drafts/simulation/sequential-impulses.json"
 },
 "solves": [
  "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"
 ],
 "authority": "Catto",
 "url": "https://texelatlas.vercel.app/t/sequential-impulses/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}