Phaser API Documentation

  Version: 
PhysicsGroupConfig
Properties:
name type arguments Default description
collideWorldBounds boolean <optional> false

Sets Phaser.Physics.Arcade.Body#collideWorldBounds.

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

Sets Phaser.Physics.Arcade.Body#allowDrag.

allowGravity boolean <optional> true

Sets Phaser.Physics.Arcade.Body#allowGravity.

allowRotation boolean <optional> true

Sets Phaser.Physics.Arcade.Body#allowRotation.

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

Sets Phaser.Physics.Arcade.Body#angularVelocity.

angularAcceleration number <optional> 0

Sets Phaser.Physics.Arcade.Body#angularAcceleration.

angularDrag number <optional> 0

Sets Phaser.Physics.Arcade.Body#angularDrag.

mass number <optional> 0

Sets Phaser.Physics.Arcade.Body#mass.

immovable boolean <optional> false

Sets Phaser.Physics.Arcade.Body#immovable.

Type:
object