@react-three/p2
Version:
2D physics based hooks for react-three-fiber
6 lines (5 loc) • 435 B
TypeScript
import type { CannonMessageBody } from '../setup';
import type { CreateMaterial } from './material';
import type { State } from './state';
export declare const addContactMaterial: (world: State['world'], createMaterial: CreateMaterial, [materialA, materialB, options]: CannonMessageBody<'addContactMaterial'>['props'], uuid: string) => void;
export declare const removeContactMaterial: (world: State['world'], cmUUID: string) => void;