UNPKG

@pmndrs/cannon-worker-api

Version:
10 lines (9 loc) 365 B
import { Material } from 'cannon-es'; declare type MaterialOptions = { friction?: number; name?: string | symbol; restitution?: number; }; export declare type CreateMaterial = (nameOrOptions?: MaterialOptions | string) => Material; export declare const createMaterialFactory: (materials: Record<string | symbol, Material>) => CreateMaterial; export {};