Three simulation types
Choose the right runtime.
Use custom code or built-in Rapier physics in two or three dimensions.
custom-js
Custom
Author the simulation loop and presentation directly for bespoke interactive experiences.
View simulations
rapier2d
Rapier 2D
Fast 2D rigid-body simulations with colliders, sensors, joints, and collision events.
View simulations
rapier3d
Rapier 3D
Interactive 3D rigid-body worlds with joints, sensors, raycasts, and custom step logic.
View simulations
Examples