Phaser API Documentation

  Version: 
circleBodyIntersects(circle, body)

Description:

Tests if a circular Body intersects with another Body.

Parameters:

name type description
circle Phaser.Physics.Arcade.Body

The circular body to test.

body Phaser.Physics.Arcade.Body

The rectangular body to test.

Returns:
Description:

True if the two bodies intersect, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0