|
1 | 1 | # @react-three/rapier |
2 | 2 |
|
| 3 | +## 2.2.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 463c981: feat: add 'useFilterContactPair', 'useFilterIntersectionPair' hooks (@driescroons, @isaac-mason) |
| 8 | +- 6167789: feat: bump @dimforge/rapier3d-compat from v0.15.0 to v0.19.2 (@driescroons) |
| 9 | + |
| 10 | + See the rapier.js changelog for details: https://github.com/dimforge/rapier.js/blob/master/CHANGELOG.md |
| 11 | + |
| 12 | + **Notable Improvements:** |
| 13 | + |
| 14 | + - **Performance:** Significant improvements for scenes with many contact constraints, CCD-enabled bodies, and large voxel maps |
| 15 | + - **Voxel Support:** Sparse storage for voxels allows orders of magnitudes larger maps without hitting 4GB WASM memory limit |
| 16 | + - **New Features:** Added `World.timing*` functions for performance profiling when `World.profilerEnabled = true` |
| 17 | + - **New Features:** Added `World.maxCcdSubsteps` getter/setter for CCD substep configuration |
| 18 | + - **New Features:** Added `Collider.translationWrtParent()` and `Collider.rotationWrtParent()` for collider transforms relative to parent rigid-body |
| 19 | + - **Memory Management:** Added `RAPIER.reserveMemory` to pre-allocate memory for future operations |
| 20 | + |
| 21 | + **Bug Fixes:** |
| 22 | + |
| 23 | + - Fixed kinematic bodies not waking up when setting velocity |
| 24 | + - Fixed slow-moving kinematic bodies falling asleep |
| 25 | + - Fixed point-projection on voxel shapes |
| 26 | + - Fixed crash when removing colliders in specific order |
| 27 | + - Fixed sensor events not triggering when hitting voxel colliders |
| 28 | + - Fixed infinite loop in `collider.setVoxel` |
| 29 | + - Fixed rollup configuration for proper TypeScript types export |
| 30 | + - Fixed determinism issue on Apple M1 processors |
| 31 | + |
| 32 | + **Breaking Changes:** |
| 33 | + |
| 34 | + - Removed `numAdditionalFrictionIterations` from IntegrationParameters (legacy PGS solver method) |
| 35 | + - Removed legacy PGS solver methods: `switchToStandardPgsSolver`, `switchToSmallStepsPgsSolver`, `switchToSmallStepsPgsSolverWithoutWarmstart` |
| 36 | + - Renamed `RigidBody.invPrincipalInertiaSqrt` and `.effectiveWorldInvInertiaSqrt` to `invPrincipalInertia` and `effectiveWorldInvInertia` (removed `Sqrt` suffix - now returns actual inverse angular inertia matrix instead of square root) |
| 37 | + - rapier-compat file extensions changed from `.cjs.js`/`.es.js` to `.cjs`/`.mjs` for better NPM compatibility |
| 38 | + |
3 | 39 | ## 2.1.0 |
4 | 40 |
|
5 | 41 | ### Minor Changes |
|
0 commit comments