UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

4 lines (3 loc) 250 B
import { type MaterialOptions, Material } from 'p2-es'; export declare type CreateMaterial = (nameOrOptions?: MaterialOptions | number) => Material; export declare const createMaterialFactory: (materials: Record<number, Material>) => CreateMaterial;