Phaser API Documentation

renderSeparations(pairs, graphics, lineColor)


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.


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.


This Matter World instance for method chaining.

Since: 3.22.0