Phaser API Documentation

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

Description:

Sizes and positions this Body, as a circle.

Parameters:

name type arguments description
radius number

The radius of the Body, in source pixels.

offsetX number <optional>

The horizontal offset of the Body from its Game Object, in source pixels.

offsetY number <optional>

The vertical offset of the Body from its Game Object, in source pixels.

Returns:
Description:

This Body object.

Since: 3.0.0