UNPKG

@dimforge/rapier3d

Version:

3-dimensional physics engine in Rust - official JS bindings.

22 lines 577 B
import { RawCCDSolver } from "../raw"; /** * The CCD solver responsible for resolving Continuous Collision Detection. * * To avoid leaking WASM resources, this MUST be freed manually with `ccdSolver.free()` * once you are done using it. */ export class CCDSolver { /** * Release the WASM memory occupied by this narrow-phase. */ free() { if (!!this.raw) { this.raw.free(); } this.raw = undefined; } constructor(raw) { this.raw = raw || new RawCCDSolver(); } } //# sourceMappingURL=ccd_solver.js.map