UNPKG
@react-three/p2
Version:
latest (0.0.6)
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
0.0.0
2D physics based hooks for react-three-fiber
github.com/pmndrs/use-p2
pmndrs/use-p2
@react-three/p2
/
dist
/
worker
/
operations
/
add-spring.d.ts
4 lines
(3 loc)
•
293 B
TypeScript
View Raw
1
2
3
4
import
type
{
CannonMessageMap
}
from
'../../setup'
;
import
type
{
State
}
from
'../state'
;
export
declare
const
addSpring
:
(
state
:
State
, { props: [bodyA, bodyB, { damping, localAnchorA, localAnchorB, stiffness, worldAnchorA, worldAnchorB }], uuid, }:
CannonMessageMap
[
'addSpring'
]
) =>
void
;