UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

4 lines (3 loc) 270 B
import type { CannonMessageProps } from '../../setup'; import type { State } from '../state'; export declare const init: (state: State, { axisIndex, broadphase, defaultContactMaterial, gravity, iterations, normalIndex, tolerance, }: CannonMessageProps<'init'>) => void;