@pmndrs/cannon-worker-api
Version:
An API to use cannon-es in a web worker
6 lines (5 loc) • 435 B
TypeScript
import type { CannonMessageBody } from '../types';
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;