@threlte/rapier 3.2.0 → 3.3.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.
|
@@ -168,20 +168,15 @@
|
|
|
168
168
|
* If the Collider isAttached (i.e. NOT child of a RigidBody), update the
|
|
169
169
|
* transforms on every frame.
|
|
170
170
|
*/
|
|
171
|
-
|
|
171
|
+
useTask(
|
|
172
172
|
() => {
|
|
173
173
|
refresh()
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
|
|
176
|
+
running: () => !hasRigidBodyParent && type === 'dynamic'
|
|
177
177
|
}
|
|
178
178
|
)
|
|
179
179
|
|
|
180
|
-
$effect.pre(() => {
|
|
181
|
-
if (!hasRigidBodyParent && type === 'dynamic') start()
|
|
182
|
-
else stop()
|
|
183
|
-
})
|
|
184
|
-
|
|
185
180
|
/**
|
|
186
181
|
* Cleanup
|
|
187
182
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@threlte/rapier",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"author": "Grischa Erbe <hello@legrisch.com> (https://legrisch.com)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Components and hooks to use the Rapier physics engine in Threlte",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typescript": "5.9.2",
|
|
31
31
|
"typescript-eslint": "^8.32.0",
|
|
32
32
|
"vite": "^7.1.4",
|
|
33
|
-
"@threlte/core": "8.
|
|
33
|
+
"@threlte/core": "8.4.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"@dimforge/rapier3d-compat": ">=0.16",
|