@react-three/rapier 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -620,6 +620,12 @@ const mutableRigidBodyOptions = {
|
|
620
620
|
enabledTranslations: (rb, [x, y, z]) => {
|
621
621
|
rb.setEnabledTranslations(x, y, z, true);
|
622
622
|
},
|
623
|
+
lockRotations: (rb, value) => {
|
624
|
+
rb.lockRotations(value, true);
|
625
|
+
},
|
626
|
+
lockTranslations: (rb, value) => {
|
627
|
+
rb.lockTranslations(value, true);
|
628
|
+
},
|
623
629
|
angularVelocity: (rb, [x, y, z]) => {
|
624
630
|
rb.setAngvel({
|
625
631
|
x,
|
@@ -620,6 +620,12 @@ const mutableRigidBodyOptions = {
|
|
620
620
|
enabledTranslations: (rb, [x, y, z]) => {
|
621
621
|
rb.setEnabledTranslations(x, y, z, true);
|
622
622
|
},
|
623
|
+
lockRotations: (rb, value) => {
|
624
|
+
rb.lockRotations(value, true);
|
625
|
+
},
|
626
|
+
lockTranslations: (rb, value) => {
|
627
|
+
rb.lockTranslations(value, true);
|
628
|
+
},
|
623
629
|
angularVelocity: (rb, [x, y, z]) => {
|
624
630
|
rb.setAngvel({
|
625
631
|
x,
|
@@ -595,6 +595,12 @@ const mutableRigidBodyOptions = {
|
|
595
595
|
enabledTranslations: (rb, [x, y, z]) => {
|
596
596
|
rb.setEnabledTranslations(x, y, z, true);
|
597
597
|
},
|
598
|
+
lockRotations: (rb, value) => {
|
599
|
+
rb.lockRotations(value, true);
|
600
|
+
},
|
601
|
+
lockTranslations: (rb, value) => {
|
602
|
+
rb.lockTranslations(value, true);
|
603
|
+
},
|
598
604
|
angularVelocity: (rb, [x, y, z]) => {
|
599
605
|
rb.setAngvel({
|
600
606
|
x,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@react-three/rapier",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.11.0",
|
4
4
|
"source": "src/index.ts",
|
5
5
|
"main": "dist/react-three-rapier.cjs.js",
|
6
6
|
"module": "dist/react-three-rapier.esm.js",
|
@@ -18,12 +18,12 @@
|
|
18
18
|
"@types/react-dom": "^18.0.2",
|
19
19
|
"@types/three": "^0.139.0",
|
20
20
|
"@vitejs/plugin-react": "^2.1.0",
|
21
|
-
"@vitest/ui": "^0.
|
21
|
+
"@vitest/ui": "^0.25.2",
|
22
22
|
"happy-dom": "^7.5.5",
|
23
23
|
"react": "^18.1.0",
|
24
24
|
"react-dom": "^18.1.0",
|
25
25
|
"three": "^0.139.2",
|
26
|
-
"vitest": "^0.
|
26
|
+
"vitest": "^0.25.2"
|
27
27
|
},
|
28
28
|
"peerDependencies": {
|
29
29
|
"@react-three/fiber": "^8.0.12",
|
@@ -31,7 +31,7 @@
|
|
31
31
|
"three": ">=0.139.2"
|
32
32
|
},
|
33
33
|
"dependencies": {
|
34
|
-
"@dimforge/rapier3d-compat": "0.
|
34
|
+
"@dimforge/rapier3d-compat": "0.10.0",
|
35
35
|
"three-stdlib": "^2.15.0",
|
36
36
|
"use-asset": "^1.0.4"
|
37
37
|
},
|