@pmndrs/cannon-worker-api
Version:
An API to use cannon-es in a web worker
4 lines (3 loc) • 306 B
TypeScript
import type { CannonMessageMap } from '../../types';
import type { State } from '../state';
export declare const addSpring: (state: State, { props: [bodyA, bodyB, { damping, localAnchorA, localAnchorB, restLength, stiffness, worldAnchorA, worldAnchorB },], uuid, }: CannonMessageMap['addSpring']) => void;