Physics.Ninja.Body#render()

render(context, body, color, filled)

Render Sprite's Body.

Parameters
Name Type Argument Default Description
context object

The context to render to.

body Phaser.Physics.Ninja.Body

The Body to render.

color string <optional>
'rgba(0,255,0,0.4)'

color of the debug shape to be rendered. (format is css color string).

filled boolean <optional>
true

Render the shape as a filled (default, true) or a stroked (false)

Source code: physics/ninja/Body.js (Line 548)
doc_phaser
2017-02-14 11:00:20
Comments
Leave a Comment

Please login to continue.