phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.
29 lines (26 loc) • 980 B
JavaScript
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2013-2023 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* @typedef {object} Phaser.Physics.Matter.Events.AfterUpdateEvent
*
* @property {number} timestamp - The Matter Engine `timing.timestamp` value for the event.
* @property {any} source - The source object of the event.
* @property {string} name - The name of the event.
*/
/**
* The Matter Physics After Update Event.
*
* This event is dispatched by a Matter Physics World instance after the engine has updated and all collision events have resolved.
*
* Listen to it from a Scene using: `this.matter.world.on('afterupdate', listener)`.
*
* @event Phaser.Physics.Matter.Events#AFTER_UPDATE
* @type {string}
* @since 3.0.0
*
* @param {Phaser.Physics.Matter.Events.AfterUpdateEvent} event - The Update Event object.
*/
module.exports = 'afterupdate';