Phaser API Documentation

  Version: 
worldX: number

Description:

The x position of this Pointer, translated into the coordinate space of the most recent Camera it interacted with.

If you wish to use this value outside of an input event handler then you should update it first by calling the Pointer.updateWorldPoint method.

Type:
number
Default: 0
Since: 3.10.0
Source: src/input/Pointer.js (Line 261)