UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

5 lines (4 loc) 285 B
import type { CannonMessageMap } from '../../setup'; import type { CreateMaterial } from '../material'; import type { State } from '../state'; export declare const addBodies: (state: State, createMaterial: CreateMaterial, { props, type, uuid }: CannonMessageMap['addBodies']) => void;