Phaser API Documentation

  Version: 
updateWorldPoint(camera)

Description:

Takes a Camera and updates this Pointer's worldX and worldY values so they are the result of a translation through the given Camera.

Note that the values will be automatically replaced the moment the Pointer is updated by an input event, such as a mouse move, so should be used immediately.

Parameters:

name type description
camera Phaser.Cameras.Scene2D.Camera

The Camera which is being tested against.

Returns:
Description:

This Pointer object.

Since: 3.19.0
Source: src/input/Pointer.js (Line 496)