Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

TriggerTrait

const TriggerTrait: Trait<{ inside: boolean; radius: number; targets: () => TargetFilter; }>

inside while any of its targets has a body within the sphere of radius about the entity. The step emits TriggerEnteredEvent as each comes in and TriggerExitedEvent as each leaves.