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.
name | type | description |
---|---|---|
camera | Phaser.Cameras.Scene2D.Camera |
The Camera which is being tested against. |
This Pointer object.