intersects(body1, body2) → {boolean}
Check for intersection against two bodies.
Parameters
Name Type Description body1 Phaser.Physics.Arcade.Body The first Body object to check. body2 Phaser.Physics.Arcade.Body The second Body object to check.
Returns
boolean - True if they intersect, otherwise false.
Source code: physics/arcade/World.js (Line 1061)