renderBodyInfo(body, x, y, color)
Render Sprite Body Physics Data as text.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
body | Phaser.Physics.Arcade.Body | The Body to render the info of. | ||
x | number | X position of the debug info to be rendered. | ||
y | number | Y position of the debug info to be rendered. | ||
color | string | <optional> | 'rgb(255,255,255)' | color of the debug info to be rendered. (format is css color string). |
- Source code: physics/arcade/Body.js (Line 1470)
Please login to continue.