npm / @react-three/rapier
@react-three/rapier
What changed in @react-three/rapier 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-19.
9 breaking8 new APIs and options2 performance7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@react-three/rapier 226 changes
Breaking changes 9
Replaces effectiveWorldInvInertiaSqrt and returns the actual inverse angular inertia matrix instead of its square root.
Replaces invPrincipalInertiaSqrt and returns the actual inverse angular inertia matrix instead of its square root.
Removes numAdditionalFrictionIterations from IntegrationParameters as part of removing the legacy PGS solver method.
Changes rapier-compat file extensions from .cjs.js/.es.js to .cjs/.mjs for better NPM compatibility.
Renames the property to effectiveWorldInvInertia; the new property returns the actual inverse angular inertia matrix instead of its square root.
Renames the property to invPrincipalInertia; the new property returns the actual inverse angular inertia matrix instead of its square root.
Removes the legacy PGS solver method.
Removes the legacy PGS solver method.
Removes the legacy PGS solver method.
New APIs and options 8
Adds access to a collider's rotation relative to its parent rigid-body.
Adds access to a collider's translation relative to its parent rigid-body.
Adds a way to pre-allocate memory for future operations.
Adds the useFilterContactPair hook for filtering contact pairs.
Adds the useFilterIntersectionPair hook for filtering intersection pairs.
Adds a getter and setter for configuring CCD substeps.
Enabling World.profilerEnabled allows performance profiling with World.timing* functions.
Adds World.timing* functions for performance profiling when World.profilerEnabled is true.
Performance 2
Performance improves for scenes with many contact constraints, CCD-enabled bodies, and large voxel maps.
Sparse voxel storage allows much larger maps without hitting the 4GB WASM memory limit.
Fixes and other changes 7
Fixes a determinism issue on Apple M1 processors.
Fixes a crash when removing colliders in a specific order.
Fixes an infinite loop in collider.setVoxel.
Fixes kinematic bodies not waking up when setting velocity.
Fixes slow-moving kinematic bodies falling asleep.
Fixes point-projection on voxel shapes.
Fixes sensor events not triggering when hitting voxel colliders.