Skip to main content
Version: Phaser v3.88.2

Types.Physics.Arcade

ArcadeBodyBounds

<static> ArcadeBodyBounds

nametypeoptionaldescription
xnumberNoThe left edge.
ynumberNoThe upper edge.
rightnumberNoThe right edge.
bottomnumberNoThe lower edge.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeBodyBounds.js#L1
Since: 3.0.0


ArcadeBodyCollision

<static> ArcadeBodyCollision

nametypeoptionaldescription
nonebooleanNoTrue if the Body is not colliding.
upbooleanNoTrue if the Body is colliding on its upper edge.
downbooleanNoTrue if the Body is colliding on its lower edge.
leftbooleanNoTrue if the Body is colliding on its left edge.
rightbooleanNoTrue if the Body is colliding on its right edge.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeBodyCollision.js#L1
Since: 3.0.0


ArcadeCollider

<static> ArcadeCollider

An Arcade Physics Collider Type.

Type: Phaser.Physics.Arcade.Sprite | Phaser.Physics.Arcade.Image | Phaser.Physics.Arcade.StaticGroup | Phaser.Physics.Arcade.Group | Phaser.Tilemaps.TilemapLayer

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeCollider.js#L1
Since: 3.70.0


ArcadeColliderType

<static> ArcadeColliderType

An Arcade Physics Collider Type.

Type: Phaser.Physics.Arcade.Body | Phaser.Physics.Arcade.StaticBody | Phaser.GameObjects.GameObject | Phaser.GameObjects.Group | Phaser.Physics.Arcade.Sprite | Phaser.Physics.Arcade.Image | Phaser.Physics.Arcade.StaticGroup | Phaser.Physics.Arcade.Group | Phaser.Tilemaps.TilemapLayer | Array.<Phaser.Physics.Arcade.Body> | Array.<Phaser.GameObjects.GameObject> | Array.<Phaser.Physics.Arcade.Sprite> | Array.<Phaser.Physics.Arcade.Image> | Array.<Phaser.Physics.Arcade.StaticGroup> | Array.<Phaser.Physics.Arcade.Group> | Array.<Phaser.Tilemaps.TilemapLayer>

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeColliderType.js#L1
Since: 3.0.0


ArcadePhysicsCallback

<static> ArcadePhysicsCallback

Type: function

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadePhysicsCallback.js#L1


ArcadeWorldConfig

<static> ArcadeWorldConfig

nametypeoptionaldefaultdescription
fpsnumberYes60Sets {@link Phaser.Physics.Arcade.World#fps}.
fixedStepbooleanYestrueSets {@link Phaser.Physics.Arcade.World#fixedStep}.
timeScalenumberYes1Sets {@link Phaser.Physics.Arcade.World#timeScale}.
gravityPhaser.Types.Math.Vector2LikeYesSets {@link Phaser.Physics.Arcade.World#gravity}.
xnumberYes0Sets {@link Phaser.Physics.Arcade.World#bounds bounds.x}.
ynumberYes0Sets {@link Phaser.Physics.Arcade.World#bounds bounds.y}.
widthnumberYes0Sets {@link Phaser.Physics.Arcade.World#bounds bounds.width}.
heightnumberYes0Sets {@link Phaser.Physics.Arcade.World#bounds bounds.height}.
checkCollisionPhaser.Types.Physics.Arcade.CheckCollisionObjectYesSets {@link Phaser.Physics.Arcade.World#checkCollision}.
overlapBiasnumberYes4Sets {@link Phaser.Physics.Arcade.World#OVERLAP_BIAS}.
tileBiasnumberYes16Sets {@link Phaser.Physics.Arcade.World#TILE_BIAS}.
forceXbooleanYesfalseSets {@link Phaser.Physics.Arcade.World#forceX}.
isPausedbooleanYesfalseSets {@link Phaser.Physics.Arcade.World#isPaused}.
debugbooleanYesfalseSets {@link Phaser.Physics.Arcade.World#debug}.
debugShowBodybooleanYestrueSets {@link Phaser.Physics.Arcade.World#defaults debugShowBody}.
debugShowStaticBodybooleanYestrueSets {@link Phaser.Physics.Arcade.World#defaults debugShowStaticBody}.
debugShowVelocitybooleanYestrueSets {@link Phaser.Physics.Arcade.World#defaults debugShowStaticBody}.
debugBodyColornumberYes"0xff00ff"Sets {@link Phaser.Physics.Arcade.World#defaults bodyDebugColor}.
debugStaticBodyColornumberYes"0x0000ff"Sets {@link Phaser.Physics.Arcade.World#defaults staticBodyDebugColor}.
debugVelocityColornumberYes"0x00ff00"Sets {@link Phaser.Physics.Arcade.World#defaults velocityDebugColor}.
maxEntriesnumberYes16Sets {@link Phaser.Physics.Arcade.World#maxEntries}.
useTreebooleanYestrueSets {@link Phaser.Physics.Arcade.World#useTree}.
customUpdatebooleanYesfalseIf enabled, you need to call World.update yourself.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeWorldConfig.js#L1
Since: 3.0.0


ArcadeWorldDefaults

<static> ArcadeWorldDefaults

nametypeoptionaldescription
debugShowBodybooleanNoSet to true to render dynamic body outlines to the debug display.
debugShowStaticBodybooleanNoSet to true to render static body outlines to the debug display.
debugShowVelocitybooleanNoSet to true to render body velocity markers to the debug display.
bodyDebugColornumberNoThe color of dynamic body outlines when rendered to the debug display.
staticBodyDebugColornumberNoThe color of static body outlines when rendered to the debug display.
velocityDebugColornumberNoThe color of the velocity markers when rendered to the debug display.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeWorldDefaults.js#L1
Since: 3.0.0


ArcadeWorldTreeMinMax

<static> ArcadeWorldTreeMinMax

nametypeoptionaldescription
minXnumberNoThe minimum x value used in RTree searches.
minYnumberNoThe minimum y value used in RTree searches.
maxXnumberNoThe maximum x value used in RTree searches.
maxYnumberNoThe maximum y value used in RTree searches.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ArcadeWorldTreeMinMax.js#L1
Since: 3.0.0


CheckCollisionObject

<static> CheckCollisionObject

nametypeoptionaldescription
upbooleanNoWill bodies collide with the top side of the world bounds?
downbooleanNoWill bodies collide with the bottom side of the world bounds?
leftbooleanNoWill bodies collide with the left side of the world bounds?
rightbooleanNoWill bodies collide with the right side of the world bounds?

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/CheckCollisionObject.js#L1
Since: 3.0.0


GameObjectWithBody

<static> GameObjectWithBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.Body | Phaser.Physics.Arcade.StaticBodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/GameObjectWithBody.js#L1


GameObjectWithDynamicBody

<static> GameObjectWithDynamicBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.BodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/GameObjectWithDynamicBody.js#L1


GameObjectWithStaticBody

<static> GameObjectWithStaticBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.StaticBodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/GameObjectWithStaticBody.js#L1


ImageWithDynamicBody

<static> ImageWithDynamicBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.BodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ImageWithDynamicBody.js#L1


ImageWithStaticBody

<static> ImageWithStaticBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.StaticBodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/ImageWithStaticBody.js#L1


PhysicsGroupConfig

<static> PhysicsGroupConfig

nametypeoptionaldefaultdescription
collideWorldBoundsbooleanYesfalseSets {@link Phaser.Physics.Arcade.Body#collideWorldBounds}.
customBoundsRectanglePhaser.Geom.RectangleYesnullSets {@link Phaser.Physics.Arcade.Body#setBoundsRectangle setBoundsRectangle}.
accelerationXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.x}.
accelerationYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#acceleration acceleration.y}.
allowDragbooleanYestrueSets {@link Phaser.Physics.Arcade.Body#allowDrag}.
allowGravitybooleanYestrueSets {@link Phaser.Physics.Arcade.Body#allowGravity}.
allowRotationbooleanYestrueSets {@link Phaser.Physics.Arcade.Body#allowRotation}.
useDampingbooleanYesfalseSets {@link Phaser.Physics.Arcade.Body#useDamping useDamping}.
bounceXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.x}.
bounceYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#bounce bounce.y}.
dragXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#drag drag.x}.
dragYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#drag drag.y}.
enablebooleanYestrueSets {@link Phaser.Physics.Arcade.Body#enable enable}.
gravityXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#gravity gravity.x}.
gravityYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#gravity gravity.y}.
frictionXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#friction friction.x}.
frictionYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#friction friction.y}.
maxSpeednumberYes-1Sets {@link Phaser.Physics.Arcade.Body#maxSpeed maxSpeed}.
maxVelocityXnumberYes10000Sets {@link Phaser.Physics.Arcade.Body#maxVelocity maxVelocity.x}.
maxVelocityYnumberYes10000Sets {@link Phaser.Physics.Arcade.Body#maxVelocity maxVelocity.y}.
velocityXnumberYes0Sets {@link Phaser.Physics.Arcade.Body#velocity velocity.x}.
velocityYnumberYes0Sets {@link Phaser.Physics.Arcade.Body#velocity velocity.y}.
angularVelocitynumberYes0Sets {@link Phaser.Physics.Arcade.Body#angularVelocity}.
angularAccelerationnumberYes0Sets {@link Phaser.Physics.Arcade.Body#angularAcceleration}.
angularDragnumberYes0Sets {@link Phaser.Physics.Arcade.Body#angularDrag}.
massnumberYes0Sets {@link Phaser.Physics.Arcade.Body#mass}.
immovablebooleanYesfalseSets {@link Phaser.Physics.Arcade.Body#immovable}.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/PhysicsGroupConfig.js#L1
Since: 3.0.0


PhysicsGroupDefaults

<static> PhysicsGroupDefaults

nametypeoptionaldescription
setCollideWorldBoundsbooleanNoAs {@link Phaser.Physics.Arcade.Body#setCollideWorldBounds}.
setBoundsRectanglePhaser.Geom.RectangleNoAs {@link Phaser.Physics.Arcade.Body#setBoundsRectangle}.
setAccelerationXnumberNoAs {@link Phaser.Physics.Arcade.Body#setAccelerationX}.
setAccelerationYnumberNoAs {@link Phaser.Physics.Arcade.Body#setAccelerationY}.
setAllowDragbooleanNoAs {@link Phaser.Physics.Arcade.Body#setAllowDrag}.
setAllowGravitybooleanNoAs {@link Phaser.Physics.Arcade.Body#setAllowGravity}.
setAllowRotationbooleanNoAs {@link Phaser.Physics.Arcade.Body#setAllowRotation}.
setDampingbooleanNoAs {@link Phaser.Physics.Arcade.Body#setDamping}.
setBounceXnumberNoAs {@link Phaser.Physics.Arcade.Body#setBounceX}.
setBounceYnumberNoAs {@link Phaser.Physics.Arcade.Body#setBounceY}.
setDragXnumberNoAs {@link Phaser.Physics.Arcade.Body#setDragX}.
setDragYnumberNoAs {@link Phaser.Physics.Arcade.Body#setDragY}.
setEnablebooleanNoAs {@link Phaser.Physics.Arcade.Body#setEnable}.
setGravityXnumberNoAs {@link Phaser.Physics.Arcade.Body#setGravityX}.
setGravityYnumberNoAs {@link Phaser.Physics.Arcade.Body#setGravityY}.
setFrictionXnumberNoAs {@link Phaser.Physics.Arcade.Body#setFrictionX}.
setFrictionYnumberNoAs {@link Phaser.Physics.Arcade.Body#setFrictionY}.
setMaxSpeednumberNoAs {@link Phaser.Physics.Arcade.Body#setMaxSpeed}.
setVelocityXnumberNoAs {@link Phaser.Physics.Arcade.Body#setVelocityX}.
setVelocityYnumberNoAs {@link Phaser.Physics.Arcade.Body#setVelocityY}.
setAngularVelocitynumberNoAs {@link Phaser.Physics.Arcade.Body#setAngularVelocity}.
setAngularAccelerationnumberNoAs {@link Phaser.Physics.Arcade.Body#setAngularAcceleration}.
setAngularDragnumberNoAs {@link Phaser.Physics.Arcade.Body#setAngularDrag}.
setMassnumberNoAs {@link Phaser.Physics.Arcade.Body#setMass}.
setImmovablebooleanNoAs {@link Phaser.Physics.Arcade.Body#setImmovable}.

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/PhysicsGroupDefaults.js#L1
Since: 3.0.0


SpriteWithDynamicBody

<static> SpriteWithDynamicBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.BodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/SpriteWithDynamicBody.js#L1


SpriteWithStaticBody

<static> SpriteWithStaticBody

nametypeoptionaldescription
bodyPhaser.Physics.Arcade.StaticBodyNoNo description provided

Type: object

Member of: Phaser.Types.Physics.Arcade

Source: src/physics/arcade/typedefs/SpriteWithStaticBody.js#L1