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

enableBody(object, debug) Creates a P2 Physics body on the given game object.A game object can only have 1 physics body active

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

alpha : number The alpha value of the group container. Inherited From

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

create(x, y, key, frame, exists, index)

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

draw() Draws the P2 shapes to the Graphics object. Source code:

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

resume() Resumes a paused P2 World. Source code:

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

boundsCollidesWith :array An array of the bodies the world bounds collides with. Source

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

checkAll(key, value, checkAlive, checkVisible, force)

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

top : number The top coordinate of this Group. It is derived by calling getBounds, calculating the Groups dimensions

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

removeBetween(startIndex, endIndex, destroy, silent)

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

removeConstraint(constraint) → {Phaser.Physics.P2.Constraint} Removes a Constraint from the world

2025-01-10 15:47:30