Releases: pmndrs/react-three-rapier
Releases · pmndrs/react-three-rapier
@react-three/[email protected]
Minor Changes
-
463c981: feat: add 'useFilterContactPair', 'useFilterIntersectionPair' hooks (@driescroons, @isaac-mason)
-
6167789: feat: bump @dimforge/rapier3d-compat from v0.15.0 to v0.19.2 (@driescroons)
See the rapier.js changelog for details: https://github.com/dimforge/rapier.js/blob/master/CHANGELOG.md
Notable Improvements:
- Performance: Significant improvements for scenes with many contact constraints, CCD-enabled bodies, and large voxel maps
- Voxel Support: Sparse storage for voxels allows orders of magnitudes larger maps without hitting 4GB WASM memory limit
- New Features: Added
World.timing*functions for performance profiling whenWorld.profilerEnabled = true - New Features: Added
World.maxCcdSubstepsgetter/setter for CCD substep configuration - New Features: Added
Collider.translationWrtParent()andCollider.rotationWrtParent()for collider transforms relative to parent rigid-body - Memory Management: Added
RAPIER.reserveMemoryto pre-allocate memory for future operations
Bug Fixes:
- Fixed kinematic bodies not waking up when setting velocity
- Fixed slow-moving kinematic bodies falling asleep
- Fixed point-projection on voxel shapes
- Fixed crash when removing colliders in specific order
- Fixed sensor events not triggering when hitting voxel colliders
- Fixed infinite loop in
collider.setVoxel - Fixed rollup configuration for proper TypeScript types export
- Fixed determinism issue on Apple M1 processors
Breaking Changes:
- Removed
numAdditionalFrictionIterationsfrom IntegrationParameters (legacy PGS solver method) - Removed legacy PGS solver methods:
switchToStandardPgsSolver,switchToSmallStepsPgsSolver,switchToSmallStepsPgsSolverWithoutWarmstart - Renamed
RigidBody.invPrincipalInertiaSqrtand.effectiveWorldInvInertiaSqrttoinvPrincipalInertiaandeffectiveWorldInvInertia(removedSqrtsuffix - now returns actual inverse angular inertia matrix instead of square root) - rapier-compat file extensions changed from
.cjs.js/.es.jsto.cjs/.mjsfor better NPM compatibility
@react-three/[email protected]
Minor Changes
-
0b585e0: feat: bump @dimforge/rapier3d-compat from v0.14.0 to v0.15.0
See the rapier.js changelog for details: https://github.com/dimforge/rapier.js/blob/master/CHANGELOG.md
@react-three/[email protected]
Patch Changes
- a42dfc9: fix: debug geometry not updating correctly for WebGPURenderer
@react-three/[email protected]
@react-three/[email protected]
@react-three/[email protected]
@react-three/[email protected]
Major Changes
- 62906a9: feat: react 19 support
Minor Changes
-
62906a9: feat: remove deprecated Vector3Array, Vector4Array, Boolean3Array types
use Vector3Tuple, Vector4Tuple, Boolean3Tuple instead
Patch Changes
- Updated dependencies [62906a9]
- Updated dependencies [62906a9]
- @react-three/[email protected]
@react-three/[email protected]
Minor Changes
- 55fa8fe: Update @dimforge/rapier3d-compat to 0.14.0 (@wiledal)
- See https://github.com/dimforge/rapier.js/blob/master/CHANGELOG.md
- Changed World prop
erptocontactNaturalFrequency- This is undocumented in the Rapier.js documentation, but was introduced Rapier 0.20.0 dimforge/rapier#651
- The change mentions
contactDampingRatiobut this is not exposed in the Rapier.js API as of yet
@react-three/[email protected]
Minor Changes
-
a155277: feat: bump @dimforge/rapier3d-compat from 0.12.0 to 0.13.1
- Added World prop
lengthUnit - Renamed World props
allowedLinearErrorandpredictionDistancetonormalizedAllowedLinearErrorandnormalizedPredictionDistance, matching upstream changes - Added
softCcdPredictionRigidBody prop - Added
contactSkincollider prop
- Added World prop
Patch Changes
- 1dc78d0: feat: add
activeCollisionTypesprop to RigidBody and Collider components
@react-three/[email protected]
Patch Changes
- bad7da7: fix: move away from use-asset