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-bodies.d.ts
5 lines
(4 loc)
•
285 B
TypeScript
View Raw
1
2
3
4
5
import
type
{
CannonMessageMap
}
from
'../../setup'
;
import
type
{
CreateMaterial
}
from
'../material'
;
import
type
{
State
}
from
'../state'
;
export
declare
const
addBodies
:
(
state
:
State
,
createMaterial
:
CreateMaterial
, { props,
type
, uuid }:
CannonMessageMap
[
'addBodies'
]
) =>
void
;