- 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 xnumber The left edge.
ynumber The upper edge.
rightnumber The right edge.
bottomnumber The lower edge.
-
ArcadeBodyCollision
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeBodyCollision.js (Line 1)
Properties:
Name Type Description noneboolean True if the Body is not colliding.
upboolean True if the Body is colliding on its upper edge.
downboolean True if the Body is colliding on its lower edge.
leftboolean True if the Body is colliding on its left edge.
rightboolean 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 fpsnumber <optional>
60 fixedStepboolean <optional>
true timeScalenumber <optional>
1 gravityPhaser.Types.Math.Vector2Like <optional>
xnumber <optional>
0 Sets bounds.x.
ynumber <optional>
0 Sets bounds.y.
widthnumber <optional>
0 Sets bounds.width.
heightnumber <optional>
0 Sets bounds.height.
checkCollisionPhaser.Types.Physics.Arcade.CheckCollisionObject <optional>
overlapBiasnumber <optional>
4 tileBiasnumber <optional>
16 forceXboolean <optional>
false isPausedboolean <optional>
false debugboolean <optional>
false Sets Phaser.Physics.Arcade.World#debug.
debugShowBodyboolean <optional>
true Sets debugShowBody.
debugShowStaticBodyboolean <optional>
true Sets debugShowStaticBody.
debugShowVelocityboolean <optional>
true Sets debugShowStaticBody.
debugBodyColornumber <optional>
0xff00ff Sets bodyDebugColor.
debugStaticBodyColornumber <optional>
0x0000ff Sets staticBodyDebugColor.
debugVelocityColornumber <optional>
0x00ff00 Sets velocityDebugColor.
maxEntriesnumber <optional>
16 useTreeboolean <optional>
true customUpdateboolean <optional>
false If enabled, you need to call
World.updateyourself. -
ArcadeWorldDefaults
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/ArcadeWorldDefaults.js (Line 1)
Properties:
Name Type Description debugShowBodyboolean Set to
trueto render dynamic body outlines to the debug display.debugShowStaticBodyboolean Set to
trueto render static body outlines to the debug display.debugShowVelocityboolean Set to
trueto render body velocity markers to the debug display.bodyDebugColornumber The color of dynamic body outlines when rendered to the debug display.
staticBodyDebugColornumber The color of static body outlines when rendered to the debug display.
velocityDebugColornumber 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 minXnumber The minimum x value used in RTree searches.
minYnumber The minimum y value used in RTree searches.
maxXnumber The maximum x value used in RTree searches.
maxYnumber 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 upboolean Will bodies collide with the top side of the world bounds?
downboolean Will bodies collide with the bottom side of the world bounds?
leftboolean Will bodies collide with the left side of the world bounds?
rightboolean 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 bodyPhaser.Physics.Arcade.Body | Phaser.Physics.Arcade.StaticBody -
GameObjectWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/GameObjectWithDynamicBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.Physics.Arcade.Body -
GameObjectWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/GameObjectWithStaticBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.Physics.Arcade.StaticBody -
ImageWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/ImageWithDynamicBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.Physics.Arcade.Body -
ImageWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/ImageWithStaticBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.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 collideWorldBoundsboolean <optional>
false customBoundsRectanglePhaser.Geom.Rectangle <optional>
null Sets setBoundsRectangle.
accelerationXnumber <optional>
0 Sets acceleration.x.
accelerationYnumber <optional>
0 Sets acceleration.y.
allowDragboolean <optional>
true allowGravityboolean <optional>
true allowRotationboolean <optional>
true bounceXnumber <optional>
0 Sets bounce.x.
bounceYnumber <optional>
0 Sets bounce.y.
dragXnumber <optional>
0 Sets drag.x.
dragYnumber <optional>
0 Sets drag.y.
enableboolean <optional>
true Sets enable.
gravityXnumber <optional>
0 Sets gravity.x.
gravityYnumber <optional>
0 Sets gravity.y.
frictionXnumber <optional>
0 Sets friction.x.
frictionYnumber <optional>
0 Sets friction.y.
maxVelocityXnumber <optional>
10000 Sets maxVelocity.x.
maxVelocityYnumber <optional>
10000 Sets maxVelocity.y.
velocityXnumber <optional>
0 Sets velocity.x.
velocityYnumber <optional>
0 Sets velocity.y.
angularVelocitynumber <optional>
0 angularAccelerationnumber <optional>
0 angularDragnumber <optional>
0 massnumber <optional>
0 immovableboolean <optional>
false -
PhysicsGroupDefaults
-
Type:
- object
- Since: 3.0.0
- Source: src/physics/arcade/typedefs/PhysicsGroupDefaults.js (Line 1)
Properties:
Name Type Description setCollideWorldBoundsboolean setBoundsRectanglePhaser.Geom.Rectangle setAccelerationXnumber setAccelerationYnumber setAllowDragboolean setAllowGravityboolean setAllowRotationboolean setBounceXnumber setBounceYnumber setDragXnumber setDragYnumber setEnableboolean setGravityXnumber setGravityYnumber setFrictionXnumber setFrictionYnumber setVelocityXnumber setVelocityYnumber setAngularVelocitynumber setAngularAccelerationnumber setAngularDragnumber setMassnumber setImmovableboolean -
SpriteWithDynamicBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/SpriteWithDynamicBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.Physics.Arcade.Body -
SpriteWithStaticBody
-
Type:
- object
- Source: src/physics/arcade/typedefs/SpriteWithStaticBody.js (Line 1)
Properties:
Name Type Description bodyPhaser.Physics.Arcade.StaticBody
