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
/
material.d.ts
4 lines
(3 loc)
•
250 B
TypeScript
View Raw
1
2
3
4
import
{
type
MaterialOptions
,
Material
}
from
'p2-es'
;
export
declare
type
CreateMaterial
=
(
nameOrOptions
?:
MaterialOptions
|
number
) =>
Material
;
export
declare
const
createMaterialFactory
:
(
materials
:
Record
<
number
,
Material
>
) =>
CreateMaterial
;