Interface PhysicsEnvironment

The environment for PhysicsObjects to use.

Hierarchy

  • PhysicsEnvironment

Properties

airResistance: number

The air resistance to be applied to the x velocity of the PhysicsObject every update.

Default: 1000

friction: number

The friction to be applied to the x velocity of the PhysicsObject when touching the ground.

Default: 0

gravity: number

The gravity to be applied to the y velocity of the PhysicsObject every update.

Default: 2400

Generated using TypeDoc