if (particlesGeometry.getModelBound() != null) { particlesGeometry.getModelBound().computeFromPoints(particlesGeometry.getVertices()); }
  public void update(float secondsPassed) {    secondsPassed *= getSpeed();    if (isActive()) {      currentTime += secondsPassed;      timePassed = currentTime - prevTime;      if (timePassed < precision)        return;      prevTime = currentTime;      if (currentTime >= getMinTime() && currentTime <= getMaxTime()) {        if (controlFlow) {          if (currentTime - releaseTime > 1.0f) {            released = 0;            releaseTime = currentTime;          }          particlesToCreate = (int) ( (float) releaseRate * timePassed *                                     (1.0f +                                      releaseVariance *                                      (FastMath.nextRandomFloat() - 0.5f)));         if (particlesToCreate <= 0)           particlesToCreate = 1;         if (releaseRate - released <= 0)           particlesToCreate = 0;        }        int i = 0;        while (i < noParticles) {          if (particles[i].updateAndCheck(timePassed) &&              (!controlFlow || particlesToCreate > 0)) {            if (particles[i].status == Particle.DEAD &&                getRepeatType() == RT_CLAMP) {              ;            } else {              if (controlFlow) {                released++;                particlesToCreate--;              }              getRandomSpeed(particleSpeed);              particles[i].recreateParticle(particleSpeed, getRandomLifeSpan());              particles[i].status = Particle.ALIVE;              switch (getGeometry()) {                case 1:                  particles[i].location.set(getLine().random());                  break;                case 2:                  particles[i].location.set(getRectangle().random());                  break;                default:                  particles[i].location.set(originCenter);                  break;              }              particles[i].updateVerts();            }          }          i++;        }        particlesGeometry.setVertices(geometryCoordinates);        particlesGeometry.setColors(appearanceColors);      }    }  }