talira

Jolt Physics

Multi-core rigid body physics and collision detection for games and VR

open sourceMITfree

Jolt Physics is a C++ rigid body physics and collision detection library made for games and VR, and used in Horizon Forbidden West and Death Stranding 2. It's designed for heavy multithreading: bodies can be loaded in the background and collision queries run in parallel with the simulation, and the simulation is deterministic, so it can be replicated by sending only the inputs. Beyond rigid bodies and constraints it covers characters, ragdolls, wheeled and tracked vehicles, soft bodies, GPU hair strands and buoyancy, with an optional double-precision mode for large worlds. A WebAssembly build is a separate project.

Problems it solves

  • add rigid body physics to my game engine that scales across CPU cores
  • simulate vehicles, ragdolls and characters in a C++ game
  • run a deterministic physics simulation I can replicate over the network

Features

  • Rigid bodies with continuous collision detection and many shape types
  • Constraints and motors: hinge, slider, cone, gear, pulley, 6 DOF and more
  • Deterministic simulation that replicates from inputs alone
  • Collision queries that run in parallel with the simulation
  • Characters, ragdolls, wheeled and tracked vehicles and motorcycles
  • Soft bodies, GPU strand-based hair and water buoyancy
  • Optional double precision mode for large worlds