StaticBEGINInteraction-start event. Fired once when two interactors first make contact.
StaticBREAKBreak event. Fired when a constraint exceeds its maxForce or maxError limit.
StaticENDInteraction-end event. Fired once when two interactors separate.
StaticONGOINGInteraction-continue event. Fired every step while the interaction persists.
StaticPREPre-interaction event. Fired before collision resolution; handler can accept or ignore.
StaticSLEEPSleep event. Fired when a body or constraint falls asleep.
StaticWAKEWake event. Fired when a body or constraint wakes from sleep.
Enumeration of physics callback event types.
Use these singletons to specify which phase of an interaction a listener should respond to:
BEGIN— fired once when two interactors first make contactONGOING— fired every simulation step while the interaction persistsEND— fired once when two interactors separateWAKE— fired when a body or constraint wakes from sleepSLEEP— fired when a body or constraint falls asleepBREAK— fired when a constraint exceeds itsmaxForce/maxErrorand breaksPRE— fired before collision resolution; allows per-step accept/ignore decisionsValid events per listener type:
WAKE,SLEEPWAKE,SLEEP,BREAKBEGIN,ONGOING,ENDPRE(set internally)Converted from nape-compiled.js lines 516–657.