@react-three/cannon
Version:
physics based hooks for react-three-fiber
9 lines (8 loc) • 377 B
TypeScript
/// <reference types="react" />
import type { BodyProps, BodyShapeType } from '@pmndrs/cannon-worker-api';
export declare type DebugApi = {
add(id: string, props: BodyProps, type: BodyShapeType): void;
remove(id: string): void;
};
export declare const debugContext: import("react").Context<DebugApi | null>;
export declare const useDebugContext: () => DebugApi | null;