docs: public void setGravity(double gravity)
      {
          if(Double.isInfinite(gravity) || Double.isNaN(gravity) || gravity <= 0)
              throw new IllegalArgumentException("Gravity must be positive, not " + gravity);
          this.gravity = gravity;
      }