Physics.Ninja.Body#setZeroVelocity()

setZeroVelocity() Stops all movement of this body. Source code: physics/ninja/Body.js (Line 257)

Physics.Ninja.Body#right

[readonly] right : number The right value of this Body (same as Body.x + Body.width) Source code: physics/ninja/Body.js (Line 509)

Physics.Ninja.Body#reset()

reset() Resets all Body values and repositions on the Sprite. Source code: physics/ninja/Body.js (Line 365)

Physics.Ninja.Body#render()

render(context, body, color, filled) Render Sprite's Body. Parameters Name Type Argument Default Description context object The context to render to. body Phaser.Physics.Ninja.Body The Body to render. color string <optional> 'rgba(0,255,0,0.4)' color of the debug shape to be rendered. (format is css color string). filled boolean <optional> true Render the shape as a filled (default, true) or a stroked (false) Source code: physics/ninja/Body.js (Line 548)

Physics.Ninja.Body#maxSpeed

maxSpeed : number The maximum speed this body can travel at (taking drag and friction into account) Default Value 8 Source code: physics/ninja/Body.js (Line 144)

Physics.Ninja.Body#immovable

immovable : boolean An immovable Body will not receive any impacts from other bodies. Not fully implemented. Source code: physics/ninja/Body.js (Line 112)

Physics.Ninja.Body#height

[readonly] height : number The height of this Body Source code: physics/ninja/Body.js (Line 483)

Physics.Ninja.Body#gravityScale

gravityScale : number How much of the world gravity should be applied to this object? 1 = all of it, 0.5 = 50%, etc. Default Value 1 Source code: physics/ninja/Body.js (Line 89)

Physics.Ninja.Body#game

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

Physics.Ninja.Body#friction

friction : number The friction applied to this object as it moves. Default Value 0.05 Source code: physics/ninja/Body.js (Line 83)