Phaser API Documentation

  Version: 
<static> CircleToRectangle(circle, rect)

Description:

Checks for intersection between a circle and a rectangle.

Parameters:

name type description
circle Phaser.Geom.Circle

The circle to be checked.

rect Phaser.Geom.Rectangle

The rectangle to be checked.

Returns:
Description:

true if the two objects intersect, otherwise false.

Type:
  • boolean
Examples:
Since: 3.0.0