Phaser API Documentation

  Version: 
renderSeparations(pairs, graphics, lineColor)

Description:

Renders the list of Pair separations to the given Graphics instance.

The debug renderer calls this method if the showSeparations config value is set.

This method is used internally by the Matter Debug Renderer, but is also exposed publically should you wish to render the Grid to your own Graphics instance.

Parameters:

name type description
pairs Array.<MatterJS.Pair>

An array of Matter Pairs to be rendered.

graphics Phaser.GameObjects.Graphics

The Graphics object to render to.

lineColor number

The line color.

Returns:
Description:

This Matter World instance for method chaining.

Since: 3.22.0