rotateLeft(speed) This will rotate the Body by the given speed to the left (counter-clockwise). Parameters
setCircle(radius, offsetX, offsetY, rotation)
getCollisionMask() → {number} Gets the collision bitmask from the groups this body collides with
addPlane(offsetX, offsetY, rotation) → {p2.Plane}
toLocalFrame(out, worldPoint) Transform a world point to local body frame. Parameters
collideWorldBounds : boolean A Body can be set to collide against the World bounds automatically if this is set to true. Otherwise
getVelocityAtPoint(result, relativePoint) → {Array} Gets the velocity of a point in the body.
moveForward(speed) Moves the Body forwards based on its current angle and the given speed.The speed is represented in pixels per
fixedRotation : boolean - Source code:
clearCollision(clearGroup, clearMask, shape)
Page 1 of 10