Skip to content

@modoki/engine / index / clearZoneState

Function: clearZoneState()

clearZoneState(world, channel?): void

Forget occupancy so the NEXT run re-fires enter for everything currently inside. Called by the trigger systems when the sim is not running (a fresh start-of-play baseline), and safe on teardown. Omit channel to clear ALL channels for the world. (A scene swap replaces the world, so its state GCs on its own.)

Parameters

world

World

channel?

string

Returns

void

Built with Modoki.