Phaser API Documentation

  Version: 
setCircle(radius, [offsetX], [offsetY])

Description:

Sets this physics body to use a circle for collision instead of a rectangle.

Parameters:

name type arguments description
radius number

The radius of the physics body, in pixels.

offsetX number <optional>

The amount to offset the body from the parent Game Object along the x-axis.

offsetY number <optional>

The amount to offset the body from the parent Game Object along the y-axis.

Returns:
Description:

This Game Object.

Examples:
Since: 3.0.0