earthGravity

val earthGravity: Vector2

Roughly matches Earth gravity of 9.80665 m/s^2. Moves bodies down on the Y axis.

Note that Vector2 class is mutable, so this vector can be modified. Use this property in read-only mode.

Usage example: val world = createWorld(gravity = earthGravity)

See also