Physics.Arcade.Body#hitTest()

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)
doc_phaser
2017-02-14 10:59:27
Comments
Leave a Comment

Please login to continue.