hitTest(x, y) → {boolean}
Tests if a world point lies within this Body.
Parameters
Name | Type | Description |
---|---|---|
x | number | The world x coordinate to test. |
y | number | The world y coordinate to test. |
Returns
boolean -
True if the given coordinates are inside this Body, otherwise false.
- Source code: physics/arcade/Body.js (Line 1195)
Please login to continue.