Phaser API Documentation

  Version: 
setCompositeRenderStyle(composite)

Description:

Sets the debug render style for the children of the given Matter Composite.

Composites themselves do not render, but they can contain bodies, constraints and other composites that may do. So the children of this composite are passed to the setBodyRenderStyle, setCompositeRenderStyle and setConstraintRenderStyle methods accordingly.

Parameters:

name type description
composite MatterJS.CompositeType

The Matter Composite to set the render style on.

Returns:
Description:

This Matter World instance for method chaining.

Since: 3.22.0