Physics.P2#pxm()
  • References/Game Development/Phaser/P2 Physics/Physics.P2

pxm(v) → {number} Convert pixel value to p2 physics scale (meters).By default Phaser uses

2025-01-10 15:47:30
Physics.P2#setMaterial()
  • References/Game Development/Phaser/P2 Physics/Physics.P2

setMaterial(material, bodies) Sets the given Material against all Shapes owned by all the Bodies in the given array. Parameters

2025-01-10 15:47:30
Physics.P2.Body#addRectangle()
  • References/Game Development/Phaser/P2 Physics/Physics.P2.Body

addRectangle(width, height, offsetX, offsetY, rotation)

2025-01-10 15:47:30
Physics.P2.BodyDebug#ignoreDestroy
  • References/Game Development/Phaser/P2 Physics/Physics.P2.BodyDebug

ignoreDestroy : boolean A group with ignoreDestroy set to true ignores all calls to its destroy

2025-01-10 15:47:30
Physics.P2.Body#reverse()
  • References/Game Development/Phaser/P2 Physics/Physics.P2.Body

reverse(speed) Applies a force to the Body that causes it to 'thrust' backwards (in reverse), based on its current angle and the given

2025-01-10 15:47:30
Physics.P2.BodyDebug#enableBody
  • References/Game Development/Phaser/P2 Physics/Physics.P2.BodyDebug

enableBody : boolean If true all Sprites created by, or added to this group, will have a physics body enabled on them. If

2025-01-10 15:47:30
Physics.P2#walls
  • References/Game Development/Phaser/P2 Physics/Physics.P2

walls : Object An object containing the 4 wall bodies that bound the physics world. Source

2025-01-10 15:47:30
Physics.P2#emitImpactEvent
  • References/Game Development/Phaser/P2 Physics/Physics.P2

emitImpactEvent : boolean Set to true if you want to the world to emit the "impact" event. Turning this off could improve performance

2025-01-10 15:47:30
Physics.P2.BodyDebug#addChild()
  • References/Game Development/Phaser/P2 Physics/Physics.P2.BodyDebug

addChild(child) → {DisplayObject}

2025-01-10 15:47:30
Physics.P2.BodyDebug#getAll()
  • References/Game Development/Phaser/P2 Physics/Physics.P2.BodyDebug

getAll(property, value, startIndex, endIndex)

2025-01-10 15:47:30