gravity property

Offset gravity

The gravity vector of the particle system.

Implementation

Offset get gravity {
  if (_gravity == null)
    return null;

  return new Offset(_gravity.x, _gravity.y);
}
void gravity= (Offset gravity)

Implementation

set gravity(Offset gravity) {
  if (gravity == null)
    _gravity = null;
  else
    _gravity = new Vector2(gravity.dx, gravity.dy);
}