The Matter Physics Drag End Event.
This event is dispatched by a Matter Physics World instance when a Pointer Constraint stops dragging a body.
Listen to it from a Scene using: this.matter.world.on('dragend', listener)
.
name | type | description |
---|---|---|
body | MatterJS.BodyType |
The Body that has stopped being dragged. This is a Matter Body, not a Phaser Game Object. |
constraint | Phaser.Physics.Matter.PointerConstraint |
The Pointer Constraint that was dragging the body. |