Phaser API Documentation

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

Description:

Sets this Static Body to have a circular body and sets its size and position.

Parameters:

name type arguments description
radius number

The radius of the StaticBody, in pixels.

offsetX number <optional>

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

offsetY number <optional>

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

Returns:
Description:

This Static Body object.

Since: 3.0.0