@pmndrs/cannon-worker-api
Version:
An API to use cannon-es in a web worker
4 lines (3 loc) • 350 B
TypeScript
import type { CannonMessageProps } from '../../types';
import type { DecoratedWorld } from '../state';
export declare const init: (world: DecoratedWorld, { allowSleep, axisIndex, broadphase, defaultContactMaterial, frictionGravity, gravity, iterations, quatNormalizeFast, quatNormalizeSkip, solver, tolerance, }: CannonMessageProps<'init'>) => void;