Gets the top-left corner coordinate of this Game Object, regardless of origin. The returned point is calculated in local space and does not factor in any parent containers
name | type | arguments | Default | description |
---|---|---|---|---|
output | object | Phaser.Math.Vector2 | <optional> |
An object to store the values in. If not provided a new Vector2 will be created. |
|
includeParent | boolean | <optional> | false |
If this Game Object has a parent Container, include it (and all other ancestors) in the resulting vector? |
The values stored in the output object.