Phaser API Documentation

  Version: 
MatterBodyRenderConfig
Properties:
name type arguments Default description
visible boolean <optional> true

Should this body be rendered by the Debug Renderer?

opacity number <optional> 1

The opacity of the body and all parts within it.

fillColor number <optional>

The color value of the fill when rendering this body.

fillOpacity number <optional>

The opacity of the fill when rendering this body, a value between 0 and 1.

lineColor number <optional>

The color value of the line stroke when rendering this body.

lineOpacity number <optional>

The opacity of the line when rendering this body, a value between 0 and 1.

lineThickness number <optional>

If rendering lines, the thickness of the line.

sprite object <optional>

Controls the offset between the body and the parent Game Object, if it has one.

sprite.xOffset number <optional> 0

The horizontal offset between the body and the parent Game Object texture, if it has one.

sprite.yOffset number <optional> 0

The vertical offset between the body and the parent Game Object texture, if it has one.

Type:
object