{
 "id": "soft-step-solver",
 "title": "Soft Step solver / substepping",
 "aliases": [
  "Soft Step"
 ],
 "domain": "simulation",
 "subdomain": "rigid body",
 "stage": "simulation",
 "realtime": "realtime",
 "platforms": [
  "cpu",
  "webgl2",
  "webgpu"
 ],
 "year_introduced": 2024,
 "inputs": [
  "mesh"
 ],
 "outputs": [
  "animation"
 ],
 "style": "both",
 "dynamic": "dynamic",
 "summary": "Box2D v3's rigid-body solver: many small substeps with soft, spring-like constraints, and relaxation passes, replacing iteration-heavy sequential impulses.",
 "how_it_works": "Soft Step integrates with substeps (typically 4). In each substep it runs a soft pass: constraints are formulated as springs with a hertz and damping ratio converted into bias, mass and impulse scales, so large corrections are applied gently and stably. It integrates velocity and then position, and finishes with a relaxation pass at zero bias that removes the velocity added by the bias, followed by restitution. Solving once per substep with substepping instead of many iterations, combined with graph colouring, yields stable stacks that parallelise well. The idea follows the 'small steps beat many iterations' finding for XPBD, and Solver2D compared several solvers (PGS, soft step, TGS, NGS) on identical scenes.",
 "when_to_use": "Choose it when you want robust stacking, joints and large worlds with predictable behaviour and multithreading. Prefer `sequential-impulses` for the simple, well-documented older approach with fewer parameters, `xpbd` for position-based soft bodies and cloth, and `mujoco-articulated-dynamics` for articulated robots.",
 "cost": {
  "class": "cheap",
  "notes": "Cheap per substep; total cost is substeps x constraint pass plus relaxation."
 },
 "failure_modes": [
  "Soft contacts give slightly spongy penetration depth under heavy loads, so spring hertz must be tuned",
  "More substeps raise cost linearly; too few and tall stacks wobble",
  "Restitution needs a separate pass and is lossy at fast speeds",
  "Large mass ratios still stretch joints"
 ],
 "sources": [
  {
   "role": "primary",
   "key": "url:https://box2d.org/posts/2024/02/solver2d",
   "type": "web",
   "title": "Solver2D",
   "authors": [
    "Erin Catto"
   ],
   "year": null,
   "venue": "box2d.org",
   "url": "https://box2d.org/posts/2024/02/solver2d",
   "ids": {},
   "license": null,
   "extra": {
    "http_status": 200,
    "live": true,
    "archive": {
     "url": "http://web.archive.org/web/20261024105420/https://box2d.org/posts/2024/02/solver2d/",
     "timestamp": "20261024105420"
    },
    "page_title": "Solver2D :: Box2D",
    "host": "box2d.org",
    "title_confirmed_by_page": true,
    "title_unconfirmed": false
   },
   "provenance": {
    "title": {
     "authority": "http",
     "endpoint": "GET https://box2d.org/posts/2024/02/solver2d → 200",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "http",
     "endpoint": "GET https://box2d.org/posts/2024/02/solver2d → 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": "http",
     "endpoint": "GET https://box2d.org/posts/2024/02/solver2d → 200",
     "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": 0.9,
   "__bib": "cattosolver2d"
  },
  {
   "role": "primary",
   "key": "doi:10.1145/3309486.3340247",
   "type": "paper",
   "title": "Small steps in physics simulation",
   "authors": [
    "Miles Macklin",
    "Kier Storey",
    "Michelle Lu",
    "Pierre Terdiman",
    "Nuttapong Chentanez",
    "Stefan Jeschke",
    "Matthias Müller"
   ],
   "year": 2019,
   "venue": "Proceedings of the 18th annual ACM SIGGRAPH/Eurographics Symposium on Computer Animation",
   "url": "https://doi.org/10.1145/3309486.3340247",
   "ids": {
    "doi": "10.1145/3309486.3340247"
   },
   "license": null,
   "extra": {
    "csl_type": "proceedings-article"
   },
   "provenance": {
    "title": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3309486.3340247",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3309486.3340247",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3309486.3340247",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3309486.3340247",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "crossref",
     "endpoint": "https://api.crossref.org/works/10.1145/3309486.3340247",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": 1,
   "__bib": "macklin2019small"
  },
  {
   "role": "implementation",
   "key": "gh:erincatto/solver2d",
   "type": "code",
   "title": "erincatto/solver2d",
   "description": "A project for testing rigid body solver algorithms",
   "authors": [
    "erincatto"
   ],
   "year": 2024,
   "venue": "GitHub",
   "url": "https://github.com/erincatto/solver2d",
   "ids": {
    "repo": "erincatto/solver2d"
   },
   "license": "MIT",
   "extra": {
    "stars": 237,
    "stars_checked": "2026-11-29",
    "archived": false,
    "fork": false,
    "pushed_at": "2026-10-16T06:40:02Z",
    "language": "C",
    "homepage": null,
    "license_name": "MIT License"
   },
   "provenance": {
    "title": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "authors": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "year": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "venue": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "url": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    },
    "license": {
     "authority": "github",
     "endpoint": "https://api.github.com/repos/erincatto/solver2d",
     "checked_at": "2026-11-29T15:51:27.588Z"
    }
   },
   "status": "verified",
   "checked_at": "2026-11-29T15:51:27.588Z",
   "title_sim": null,
   "__bib": "erincatto2024erincatto"
  },
  {
   "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"
  }
 ],
 "presets": [],
 "related": [
  "sequential-impulses",
  "xpbd",
  "mujoco-articulated-dynamics"
 ],
 "extends": [
  "sequential-impulses"
 ],
 "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/soft-step-solver.json"
 },
 "solves": [
  "rigid body stacks jitter and are unstable",
  "physics joints stretch under heavy load",
  "need robust stable game physics at fixed time step",
  "stiff contacts cause bouncing in rigid body solver"
 ],
 "authority": "Catto",
 "url": "https://texelatlas.vercel.app/t/soft-step-solver/",
 "execution_fidelity": "none",
 "fidelity_label": "No Live Specimen",
 "benchmark_eligible": false
}