UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

4 lines (3 loc) 293 B
import type { CannonMessageMap } from '../../setup'; import type { State } from '../state'; export declare const addSpring: (state: State, { props: [bodyA, bodyB, { damping, localAnchorA, localAnchorB, stiffness, worldAnchorA, worldAnchorB }], uuid, }: CannonMessageMap['addSpring']) => void;