Skip to content

@modoki/engine / index / disposeAllPhysics2D

Variable: disposeAllPhysics2D

const disposeAllPhysics2D: () => void = registry.disposeAll

Free ALL Rapier worlds (called on Play→Stop so the next Play rebuilds fresh).

Free ALL worlds' WASM (called on Play→Stop so the next Play rebuilds fresh).

Returns

void

Built with Modoki.