UNPKG

@dimforge/rapier2d-compat

Version:

2-dimensional physics engine in Rust - official JS bindings. Compatibility package with inlined webassembly as base64.

16 lines (15 loc) 420 B
import { RawBroadPhase } from "../raw"; /** * The broad-phase used for coarse collision-detection. * * To avoid leaking WASM resources, this MUST be freed manually with `broadPhase.free()` * once you are done using it. */ export declare class BroadPhase { raw: RawBroadPhase; /** * Release the WASM memory occupied by this broad-phase. */ free(): void; constructor(raw?: RawBroadPhase); }