@react-three/cannon
Version:
physics based hooks for react-three-fiber
10 lines (9 loc) • 610 B
TypeScript
import type { CannonWorkerProps } from '@pmndrs/cannon-worker-api';
import type { PropsWithChildren } from 'react';
export declare type PhysicsProviderProps = CannonWorkerProps & {
isPaused?: boolean;
maxSubSteps?: number;
shouldInvalidate?: boolean;
stepSize?: number;
};
export declare function PhysicsProvider({ allowSleep, axisIndex, broadphase, children, defaultContactMaterial, frictionGravity, gravity, isPaused, iterations, maxSubSteps, quatNormalizeFast, quatNormalizeSkip, shouldInvalidate, size, solver, stepSize, tolerance, }: PropsWithChildren<PhysicsProviderProps>): JSX.Element;