Phaser API Documentation



If the Pointer has a button pressed down at the time this method is called, it will return the angle between the Pointer's downX and downY values and the current position.

If no button is held down, it will return the last recorded angle, based on where the Pointer was when the button was released.

The angle is based on the old position facing to the current position.

If you wish to get the current angle, based on the velocity of the Pointer, then see the Pointer.angle property.


The angle between the Pointer's coordinates in radians.

  • number
Since: 3.16.0
Source: src/input/Pointer.js (Line 1120)