gravity property

Vector2 gravity
final

Global gravity vector. Default: 981 units/s² (9.81 m/s² at 1 unit = 1 cm), matching the Box2D backend so both simulate identically.

Implementation

final Vector2 gravity = Vector2(0, 981.0);