Physics.P2.Body#toLocalFrame()

toLocalFrame(out, worldPoint) Transform a world point to local body frame. Parameters Name Type Description out Float32Array | Array The vector to store the result in. worldPoint Float32Array | Array The input world vector. Source code: physics/p2/Body.js (Line 624)

Physics.P2.Body#thrustRight()

thrustRight(speed) Applies a force to the Body that causes it to 'thrust' to the right, based on its current angle and the given speed.The speed is represented in pixels per second. So a value of 100 would move 100 pixels in 1 second (1000ms). Parameters Name Type Description speed number The speed at which it should move to the right. Source code: physics/p2/Body.js (Line 742)

Physics.P2.Body#thrustLeft()

thrustLeft(speed) Applies a force to the Body that causes it to 'thrust' to the left, based on its current angle and the given speed.The speed is represented in pixels per second. So a value of 100 would move 100 pixels in 1 second (1000ms). Parameters Name Type Description speed number The speed at which it should move to the left. Source code: physics/p2/Body.js (Line 725)

Physics.P2.Body#thrust()

thrust(speed) Applies a force to the Body that causes it to 'thrust' forwards, based on its current angle and the given speed.The speed is represented in pixels per second. So a value of 100 would move 100 pixels in 1 second (1000ms). Parameters Name Type Description speed number The speed at which it should thrust. Source code: physics/p2/Body.js (Line 708)

Physics.P2.Body#static

static : boolean Returns true if the Body is static. Setting Body.static to 'false' will make it dynamic. Source code: physics/p2/Body.js (Line 1516)

Physics.P2.Body#sprite

sprite : Phaser.Sprite Reference to the parent Sprite. Source code: physics/p2/Body.js (Line 43)

Physics.P2.Body#sleepSpeedLimit

sleepSpeedLimit : number . Source code: physics/p2/Body.js (Line 1845)

Physics.P2.Body#shapeChanged()

shapeChanged() Updates the debug draw if any body shapes change. Source code: physics/p2/Body.js (Line 1296)

Physics.P2.Body#setZeroVelocity()

setZeroVelocity() If this Body is dynamic then this will zero its velocity on both axis. Source code: physics/p2/Body.js (Line 600)

Physics.P2.Body#setZeroRotation()

setZeroRotation() If this Body is dynamic then this will zero its angular velocity. Source code: physics/p2/Body.js (Line 589)