Phaser API Documentation

  Version: 
separateCircle(body1, body2, [overlapOnly], [bias])

Description:

Separates two Bodies, when both are circular.

Parameters:

name type arguments description
body1 Phaser.Physics.Arcade.Body

The first Body to be separated.

body2 Phaser.Physics.Arcade.Body

The second Body to be separated.

overlapOnly boolean <optional>

If this a collide or overlap check?

bias number <optional>

A small value added to the calculations.

Returns:
Description:

True if separation occurred, otherwise false.

Type:
  • boolean
Since: 3.0.0