Renders either all axes, or a single axis indicator, for an array of Bodies, to the given Graphics instance.
The debug renderer calls this method if the showAxes
or showAngleIndicator
config values are set.
This method is used internally by the Matter Debug Renderer, but is also exposed publically should you wish to render bounds to your own Graphics instance.
name | type | description |
---|---|---|
bodies | array |
An array of bodies from the localWorld. |
graphics | Phaser.GameObjects.Graphics |
The Graphics object to render to. |
showAxes | boolean |
If |
lineColor | number |
The line color. |
lineOpacity | number |
The line opacity, between 0 and 1. |