Home
News
Learn
Download
Examples
Community
Login
Phaser API Documentation
Version:
Namespaces
Classes
Events
Game Objects
Physics
Scenes
Changelog
Member of:
Phaser.Physics.Arcade.Body
drawDebug(graphic)
Description:
Draws this Body and its velocity, if enabled.
Parameters:
name
type
description
graphic
Phaser.GameObjects.Graphics
The Graphics object to draw on.
Since:
3.0.0
Source:
src/physics/arcade/Body.js
(Line
1853
)
Possible examples