UNPKG

@react-three/p2

Version:

2D physics based hooks for react-three-fiber

4 lines (3 loc) 430 B
import type { CannonMessageMap } from '../../setup'; import type { State } from '../state'; export declare const addConstraint: (state: State, { props: [bodyA, bodyB, { angle, disableRotationalLock, upperLimit, lowerLimit, distance, maxForce, maxTorque, localAnchorA, localAnchorB, localAngleB, localAxisA, localPivotA, localPivotB, localOffsetB, ratio, worldPivot, },], type, uuid, }: CannonMessageMap['addConstraint']) => void;