getLocalPosition(displayObject, pointer) → {Phaser.Point}
This will return the local coordinates of the specified displayObject based on the given Pointer.
Parameters
Name Type Description displayObject Phaser.Sprite | Phaser.Image The DisplayObject to get the local coordinates for. pointer Phaser.Pointer The Pointer to use in the check against the displayObject.
Returns
Phaser.Point - A point containing the coordinates of the Pointer position relative to the DisplayObject.
Sourc