Physics.Arcade.Body#hitTest()

hitTest(x, y) → {boolean} Tests if a world point lies within this Body. Parameters Name Type Description x number The world x coordinate to test. y number The world y coordinate to test. Returns boolean - True if the given coordinates are inside this Body, otherwise false. Source code: physics/arcade/Body.js (Line 1195)

Physics.Arcade.Body#height

[readonly] height : number The calculated height of the physics body. Source code: physics/arcade/Body.js (Line 103)

Physics.Arcade.Body#halfWidth

[readonly] halfWidth : number The calculated width / 2 of the physics body. Source code: physics/arcade/Body.js (Line 127)

Physics.Arcade.Body#halfHeight

[readonly] halfHeight : number The calculated height / 2 of the physics body. Source code: physics/arcade/Body.js (Line 133)

Physics.Arcade.Body#gravity

gravity : Phaser.Point A local gravity applied to this Body. If non-zero this over rides any world gravity, unless Body.allowGravity is set to false. Source code: physics/arcade/Body.js (Line 176)

Physics.Arcade.Body#getBounds()

getBounds(obj) → {object} Returns the bounds of this physics body. Only used internally by the World collision methods. Parameters Name Type Description obj object The object in which to set the bounds values. Returns object - The object that was given to this method. Source code: physics/arcade/Body.js (Line 1165)

Physics.Arcade.Body#game

game : Phaser.Game Local reference to game. Source code: physics/arcade/Body.js (Line 25)

Physics.Arcade.Body#friction

friction : Phaser.Point The amount of movement that will occur if another object 'rides' this one. Source code: physics/arcade/Body.js (Line 252)

Physics.Arcade.Body#facing

facing : number A const reference to the direction the Body is traveling or facing. Source code: physics/arcade/Body.js (Line 300)

Physics.Arcade.Body#enable

enable : boolean A disabled body won't be checked for any form of collision or overlap or have its pre/post updates run. Default Value true Source code: physics/arcade/Body.js (Line 36)