Physics.Matter.Events
Phaser.Physics.Matter.Events
AfterAddEvent
staticAfterAddEvent
| name | type | optional | description |
|---|---|---|---|
| object | Array.<any> | No | An array of the object(s) that have been added. May be a single body, constraint, composite or a mixture of these. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
AfterRemoveEvent
staticAfterRemoveEvent
| name | type | optional | description |
|---|---|---|---|
| object | Array.<any> | No | An array of the object(s) that were removed. May be a single body, constraint, composite or a mixture of these. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/AFTER_REMOVE_EVENT.js#L7
AfterUpdateEvent
staticAfterUpdateEvent
| name | type | optional | description |
|---|---|---|---|
| timestamp | number | No | The Matter Engine timing.timestamp value for the event. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/AFTER_UPDATE_EVENT.js#L7
BeforeAddEvent
staticBeforeAddEvent
| name | type | optional | description |
|---|---|---|---|
| object | Array.<any> | No | An array of the object(s) to be added. May be a single body, constraint, composite or a mixture of these. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
BeforeRemoveEvent
staticBeforeRemoveEvent
| name | type | optional | description |
|---|---|---|---|
| object | Array.<any> | No | An array of the object(s) to be removed. May be a single body, constraint, composite or a mixture of these. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/BEFORE_REMOVE_EVENT.js#L7
BeforeUpdateEvent
staticBeforeUpdateEvent
| name | type | optional | description |
|---|---|---|---|
| timestamp | number | No | The Matter Engine timing.timestamp value for the event. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/BEFORE_UPDATE_EVENT.js#L7
CollisionActiveEvent
staticCollisionActiveEvent
| name | type | optional | description |
|---|---|---|---|
| pairs | Array.<Phaser.Types.Physics.Matter.MatterCollisionPair> | No | A list of all affected pairs in the collision. |
| timestamp | number | No | The Matter Engine timing.timestamp value for the event. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/COLLISION_ACTIVE_EVENT.js#L7
CollisionEndEvent
staticCollisionEndEvent
| name | type | optional | description |
|---|---|---|---|
| pairs | Array.<Phaser.Types.Physics.Matter.MatterCollisionPair> | No | A list of all affected pairs in the collision. |
| timestamp | number | No | The Matter Engine timing.timestamp value for the event. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/COLLISION_END_EVENT.js#L7
CollisionStartEvent
staticCollisionStartEvent
| name | type | optional | description |
|---|---|---|---|
| pairs | Array.<Phaser.Types.Physics.Matter.MatterCollisionPair> | No | A list of all affected pairs in the collision. |
| timestamp | number | No | The Matter Engine timing.timestamp value for the event. |
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/COLLISION_START_EVENT.js#L7
SleepEndEvent
staticSleepEndEvent
| name | type | optional | description |
|---|---|---|---|
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
SleepStartEvent
staticSleepStartEvent
| name | type | optional | description |
|---|---|---|---|
| source | any | No | The source object of the event. |
| name | string | No | The name of the event. |
Type: object
Member of: Phaser.Physics.Matter.Events
Source: src/physics/matter-js/events/SLEEP_START_EVENT.js#L7