/** * Instantly kills all active particles, after this method is called, all * particles will be dead and no longer visible. */ public void killAllParticles() { for (int i = 0; i < particles.length; ++i) { if (particles[i].life > 0) { this.freeParticle(i); } } }
/** * Kills the particle at the given index. * * @param index The index of the particle to kill * @see #getParticles() */ public void killParticle(int index){ freeParticle(index); }
this.freeParticle(i); continue; freeParticle(lastUsed); }else{ updateParticle(p, tpf, min, max);
/** * Instantly kills all active particles, after this method is called, all * particles will be dead and no longer visible. */ public void killAllParticles() { for (int i = 0; i < particles.length; ++i) { if (particles[i].life > 0) { this.freeParticle(i); } } }
/** * Kills the particle at the given index. * * @param index The index of the particle to kill * @see #getParticles() */ public void killParticle(int index){ freeParticle(index); }
/** * Instantly kills all active particles, after this method is called, all * particles will be dead and no longer visible. */ public void killAllParticles() { for (int i = 0; i < particles.length; ++i) { if (particles[i].life > 0) { this.freeParticle(i); } } }
/** * Kills the particle at the given index. * * @param index The index of the particle to kill * @see #getParticles() */ public void killParticle(int index){ freeParticle(index); }
this.freeParticle(i); continue; p.life -= tpf; if (p.life <= 0){ freeParticle(lastUsed); }else{ updateParticle(p, tpf, min, max);
this.freeParticle(i); continue; freeParticle(lastUsed); }else{ updateParticle(p, tpf, min, max);