@pmndrs/cannon-worker-api
Version:
An API to use cannon-es in a web worker
4 lines (3 loc) • 349 B
TypeScript
import type { CannonMessageMap } from '../../types';
import type { State } from '../state';
export declare const addConstraint: (state: State, { props: [bodyA, bodyB, { angle, axisA, axisB, collideConnected, distance, maxForce, maxMultiplier, pivotA, pivotB, twistAngle, wakeUpBodies, },], type, uuid, }: CannonMessageMap['addConstraint']) => void;