/** This updates the particles in the system (makes them all move 1 unit) */ public void updateParticles(E3DActor curActor) { double lastFrameTime = getEngine().getFpsTimer().getLastUpdateTimeSeconds(); if (lifeSeconds > 0.0 && startTime < 0.0) startTime = getEngine().getFpsTimer().getCurrentEngineTimeSeconds(); E3DParticle particle = null; if (particleList != null) { for (int i = 0; i < particleList.size(); i++) { particle = (E3DParticle) particleList.get(i); if (!particle.update(curActor, lastFrameTime)) { removeParticle(particle); i--; } } } }