Physics.Arcade.Body#renderBodyInfo()

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)
doc_phaser
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.