Skip to content

Commit ae5c3fe

Browse files
authored
Merge pull request #775 from pmndrs/changeset-release/main
Version Packages
2 parents 307945d + 30e12ba commit ae5c3fe

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

.changeset/kind-icons-arrive.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/lucky-buckets-act.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"@react-three/csg": "3.3.0",
1313
"@react-three/drei": "10.0.1",
1414
"@react-three/fiber": "9.0.4",
15-
"@react-three/rapier": "2.1.0",
15+
"@react-three/rapier": "2.2.0",
1616
"@react-three/rapier-addons": "5.0.0",
1717
"@types/three": "0.172.0",
1818
"leva": "0.10.0",

packages/react-three-rapier-addons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"@react-three/drei": "10.0.1",
1919
"@react-three/fiber": "9.0.4",
20-
"@react-three/rapier": "2.1.0",
20+
"@react-three/rapier": "2.2.0",
2121
"@types/react": "19.0.8",
2222
"@types/react-dom": "19.0.3",
2323
"react": "19.0.0",

packages/react-three-rapier/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# @react-three/rapier
22

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+
339
## 2.1.0
440

541
### Minor Changes

packages/react-three-rapier/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-three/rapier",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"source": "src/index.ts",
55
"main": "dist/react-three-rapier.cjs.js",
66
"module": "dist/react-three-rapier.esm.js",

0 commit comments

Comments
 (0)