Phaser API Documentation

  Version: 
stopDrag()

Description:

Stops the Pointer Constraint from dragging the body any further.

This is called automatically if the Pointer is released while actively dragging a body. Or, you can call it manually to release a body from a constraint without having to first release the pointer.

Since: 3.16.2