UNPKG
@threlte/rapier
Version:
latest (3.3.0)
next (3.0.0-next.20)
3.3.0
3.2.0
3.1.5
3.1.4
3.1.3
3.1.1
3.1.0
3.0.0
3.0.0-next.20
3.0.0-next.19
3.0.0-next.18
3.0.0-next.17
3.0.0-next.16
3.0.0-next.15
3.0.0-next.14
3.0.0-next.13
3.0.0-next.12
3.0.0-next.11
3.0.0-next.10
3.0.0-next.9
3.0.0-next.8
3.0.0-next.7
3.0.0-next.6
3.0.0-next.5
3.0.0-next.4
3.0.0-next.3
3.0.0-next.2
3.0.0-next.1
3.0.0-next.0
2.0.1
2.0.0
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
1.0.0-next.4
1.0.0-next.3
1.0.0-next.2
1.0.0-next.1
1.0.0-next.0
0.5.0
0.4.0
0.3.2
0.3.1
0.3.0
0.2.0
0.1.0
0.0.3
0.0.2
0.0.1
Components and hooks to use the Rapier physics engine in Threlte
threlte.xyz
threlte/threlte
@threlte/rapier
/
dist
/
hooks
/
useRigidBody.js
5 lines
(4 loc)
•
127 B
JavaScript
View Raw
1
2
3
4
5
import
{ getContext }
from
'svelte'
;
export
const
useRigidBody
= (
) => {
return
getContext
(
'threlte-rapier-rigidbody'
); };