setCollisionGroup(group, shape) Sets the given CollisionGroup to be the collision group for all shapes
removeShape(shape) → {boolean} Remove a shape from the body. Will automatically update the mass
removeNextStep : boolean To avoid deleting this body during a physics step, and causing all kinds of problems, set removeNextStep
adjustCenterOfMass() Moves the shape offsets so their center of mass becomes the body center of mass.
thrust(speed) Applies a force to the Body that causes it to 'thrust' forwards, based on its current angle and the given speed.The
debugBody : Phaser.Physics.P2.BodyDebug
rotateRight(speed) This will rotate the Body by the given speed to the left (clockwise). Parameters
addFixture(fixtureData) → {array} Add a polygon fixture. This is used during #loadPolygon.
motionState : number The type of motion this body has. Should be one of: Body.STATIC (the body does not move), Body.DYNAMIC (body
setRectangle(width, height, offsetX, offsetY,
Page 9 of 10