- Source: src/physics/arcade/typedefs/index.js (Line 7)
Type Definitions
-
ArcadeBodyBounds
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeBodyBounds.js (Line 1)
Properties:
Name Type Description x
number The left edge.
y
number The upper edge.
right
number The right edge.
bottom
number The lower edge.
-
ArcadeBodyCollision
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeBodyCollision.js (Line 1)
Properties:
Name Type Description none
boolean True if the Body is not colliding.
up
boolean True if the Body is colliding on its upper edge.
down
boolean True if the Body is colliding on its lower edge.
left
boolean True if the Body is colliding on its left edge.
right
boolean True if the Body is colliding on its right edge.
-
ArcadeColliderType
-
An Arcade Physics Collider Type.
Type:
- 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.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>
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeColliderType.js (Line 1)
-
ArcadeWorldConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeWorldConfig.js (Line 1)
Properties:
Name Type Argument Default Description fps
number <optional>
60 fixedStep
boolean <optional>
true timeScale
number <optional>
1 gravity
Phaser.Types.Math.Vector2Like <optional>
x
number <optional>
0 Sets bounds.x.
y
number <optional>
0 Sets bounds.y.
width
number <optional>
0 Sets bounds.width.
height
number <optional>
0 Sets bounds.height.
checkCollision
Phaser.Types.Physics.Arcade.CheckCollisionObject <optional>
overlapBias
number <optional>
4 tileBias
number <optional>
16 forceX
boolean <optional>
false isPaused
boolean <optional>
false debug
boolean <optional>
false Sets Phaser.Physics.Arcade.World#debug.
debugShowBody
boolean <optional>
true Sets debugShowBody.
debugShowStaticBody
boolean <optional>
true Sets debugShowStaticBody.
debugShowVelocity
boolean <optional>
true Sets debugShowStaticBody.
debugBodyColor
number <optional>
0xff00ff Sets bodyDebugColor.
debugStaticBodyColor
number <optional>
0x0000ff Sets staticBodyDebugColor.
debugVelocityColor
number <optional>
0x00ff00 Sets velocityDebugColor.
maxEntries
number <optional>
16 useTree
boolean <optional>
true customUpdate
boolean <optional>
false If enabled, you need to call
World.update
yourself. -
ArcadeWorldDefaults
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeWorldDefaults.js (Line 1)
Properties:
Name Type Description debugShowBody
boolean Set to
true
to render dynamic body outlines to the debug display.debugShowStaticBody
boolean Set to
true
to render static body outlines to the debug display.debugShowVelocity
boolean Set to
true
to render body velocity markers to the debug display.bodyDebugColor
number The color of dynamic body outlines when rendered to the debug display.
staticBodyDebugColor
number The color of static body outlines when rendered to the debug display.
velocityDebugColor
number The color of the velocity markers when rendered to the debug display.
-
ArcadeWorldTreeMinMax
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeWorldTreeMinMax.js (Line 1)
Properties:
Name Type Description minX
number The minimum x value used in RTree searches.
minY
number The minimum y value used in RTree searches.
maxX
number The maximum x value used in RTree searches.
maxY
number The maximum y value used in RTree searches.
-
CheckCollisionObject
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/CheckCollisionObject.js (Line 1)
Properties:
Name Type Description up
boolean Will bodies collide with the top side of the world bounds?
down
boolean Will bodies collide with the bottom side of the world bounds?
left
boolean Will bodies collide with the left side of the world bounds?
right
boolean Will bodies collide with the right side of the world bounds?
-
GameObjectWithBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/GameObjectWithBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.Body | Phaser.Physics.Arcade.StaticBody -
GameObjectWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/GameObjectWithDynamicBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.Body -
GameObjectWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/GameObjectWithStaticBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.StaticBody -
ImageWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/ImageWithDynamicBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.Body -
ImageWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/ImageWithStaticBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.StaticBody -
PhysicsGroupConfig
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/PhysicsGroupConfig.js (Line 1)
Properties:
Name Type Argument Default Description collideWorldBounds
boolean <optional>
false customBoundsRectangle
Phaser.Geom.Rectangle <optional>
null Sets setBoundsRectangle.
accelerationX
number <optional>
0 Sets acceleration.x.
accelerationY
number <optional>
0 Sets acceleration.y.
allowDrag
boolean <optional>
true allowGravity
boolean <optional>
true allowRotation
boolean <optional>
true bounceX
number <optional>
0 Sets bounce.x.
bounceY
number <optional>
0 Sets bounce.y.
dragX
number <optional>
0 Sets drag.x.
dragY
number <optional>
0 Sets drag.y.
enable
boolean <optional>
true Sets enable.
gravityX
number <optional>
0 Sets gravity.x.
gravityY
number <optional>
0 Sets gravity.y.
frictionX
number <optional>
0 Sets friction.x.
frictionY
number <optional>
0 Sets friction.y.
maxVelocityX
number <optional>
10000 Sets maxVelocity.x.
maxVelocityY
number <optional>
10000 Sets maxVelocity.y.
velocityX
number <optional>
0 Sets velocity.x.
velocityY
number <optional>
0 Sets velocity.y.
angularVelocity
number <optional>
0 angularAcceleration
number <optional>
0 angularDrag
number <optional>
0 mass
number <optional>
0 immovable
boolean <optional>
false -
PhysicsGroupDefaults
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/PhysicsGroupDefaults.js (Line 1)
Properties:
Name Type Description setCollideWorldBounds
boolean setBoundsRectangle
Phaser.Geom.Rectangle setAccelerationX
number setAccelerationY
number setAllowDrag
boolean setAllowGravity
boolean setAllowRotation
boolean setBounceX
number setBounceY
number setDragX
number setDragY
number setEnable
boolean setGravityX
number setGravityY
number setFrictionX
number setFrictionY
number setVelocityX
number setVelocityY
number setAngularVelocity
number setAngularAcceleration
number setAngularDrag
number setMass
number setImmovable
boolean -
SpriteWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/SpriteWithDynamicBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.Body -
SpriteWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/SpriteWithStaticBody.js (Line 1)
Properties:
Name Type Description body
Phaser.Physics.Arcade.StaticBody