Physics.Arcade.Body#Body

new Body(sprite)

The Physics Body is linked to a single Sprite. All physics operations should be performed against the body rather than
the Sprite itself. For example you can set the velocity, acceleration, bounce values etc all on the Body.

Parameters
Name Type Description
sprite Phaser.Sprite

The Sprite object this physics body belongs to.

Source code: physics/arcade/Body.js (Line 15)
doc_phaser
2017-02-14 10:59:16
Comments
Leave a Comment

Please login to continue.