@react-three/p2
Version:
2D physics based hooks for react-three-fiber
11 lines (10 loc) • 353 B
TypeScript
export default propsToBody;
export type MaterialOptions = import('p2-es').MaterialOptions;
declare function propsToBody(options: {
uuid: string;
props: BodyProps;
type: BodyShapeType;
createMaterial?: ((materialOptions: MaterialOptions) => Material) | undefined;
}): Body;
import { Material } from "p2-es";
import { Body } from "p2-es";