Takes a Camera and returns a Vector2 containing the translated position of this Pointer within that Camera. This can be used to convert this Pointers position into camera space.
name | type | arguments | description |
---|---|---|---|
camera | Phaser.Cameras.Scene2D.Camera |
The Camera to use for the translation. |
|
output | object | Phaser.Math.Vector2 | <optional> |
A Vector2-like object in which to store the translated position. |
A Vector2 containing the translated coordinates of this Pointer, based on the given camera.