Phaser API Documentation

  Version: 
intersects(body1, body2)

Description:

Checks to see if two Bodies intersect at all.

Parameters:

name type description
body1 Phaser.Physics.Arcade.Body

The first body to check.

body2 Phaser.Physics.Arcade.Body

The second body to check.

Returns:
Description:

True if the two bodies intersect, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0