StaticoffStatictriggerFires all the callbacks subscribed to the given object's eventName, in the order they subscribed, if any.
Optionalevent: (e: any) => voidStaticonFired when a call to Composite.add is made, before objects have been added.
beforeAdd
Fired when a call to Composite.add is made, after objects have been added.
afterAdd
Fired when a call to Composite.remove is made, before objects have been removed.
beforeRemove
Fired when a call to Composite.remove is made, after objects have been removed.
afterRemove
Fired when a body starts sleeping (where this is the body).
sleepStart
Removes the given event callback. If no callback, clears all callbacks in eventNames. If no eventNames, clears all events.