Physics.Arcade#circleBodyIntersects()

circleBodyIntersects(circle, body) → {boolean}

Checks to see if a circular Body intersects with a Rectangular Body.

Parameters
Name Type Description
circle Phaser.Physics.Arcade.Body

The Body with isCircle set.

body Phaser.Physics.Arcade.Body

The Body with isCircle not set (i.e. uses Rectangle shape)

Returns
boolean -

Returns true if the bodies intersect, otherwise false.

Source code: physics/arcade/World.js (Line 1125)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.