phaser
Version:
A fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers from the team at Phaser Studio Inc.
23 lines (21 loc) • 809 B
JavaScript
/**
* @author Richard Davey <rich@phaser.io>
* @copyright 2013-2025 Phaser Studio Inc.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Matter Physics Drag Event.
*
* This event is dispatched by a Matter Physics World instance when a Pointer Constraint
* is actively dragging a body. It is emitted each time the pointer moves.
*
* Listen to it from a Scene using: `this.matter.world.on('drag', listener)`.
*
* @event Phaser.Physics.Matter.Events#DRAG
* @type {string}
* @since 3.16.2
*
* @param {MatterJS.BodyType} body - The Body that is being dragged. This is a Matter Body, not a Phaser Game Object.
* @param {Phaser.Physics.Matter.PointerConstraint} constraint - The Pointer Constraint that is dragging the body.
*/
module.exports = 'drag';