checkCollision : Object Set the checkCollision properties to control which directions collision is processed for this Body.
new Body(sprite) The Physics Body is linked to a single Sprite. All physics operations should be performed against the body rather than
allowRotation : boolean Allow this Body to be rotated? (via angularVelocity, etc) Default
blocked : Object This object is populated with boolean values when the Body collides with the World bounds or a Tile.For
overlapY : number When this body collides with another, the amount of overlap is stored here. The amount of vertical overlap during
maxAngular : number The maximum angular velocity in degrees per second that the Body can reach.
[readonly] halfWidth : number The calculated width / 2 of the physics body.
reset(x, y) Resets all Body values (velocity, acceleration, rotation, etc) Parameters
y : number The y position. Source code:
onWall() → {boolean} Returns true if either side of this Body is in contact with either the world
Page 3 of 9