Tests to see if any face in this Mesh intersects with the given coordinates.
The given position is translated through the matrix of this Mesh and the given Camera, before being compared against the vertices.
name | type | arguments | description |
---|---|---|---|
x | number |
The x position to check against. |
|
y | number |
The y position to check against. |
|
camera | Phaser.Cameras.Scene2D.Camera | <optional> |
The camera to pass the coordinates through. If not give, the default Scene Camera is used. |
Returns true
if any face of this Mesh intersects with the given coordinate, otherwise false
.