/** * Destroy a particle. The particle is removed after the next step. * * @param Index of the particle to destroy. * @param Whether to call the destruction listener just before the particle is destroyed. */ public void destroyParticle(int index, boolean callDestructionListener) { m_particleSystem.destroyParticle(index, callDestructionListener); }
public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) { for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) { destroyParticle(i, callDestructionListener); } }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
/** * Destroy a particle. The particle is removed after the next step. * * @param Index of the particle to destroy. * @param Whether to call the destruction listener just before the particle is destroyed. */ public void destroyParticle(int index, boolean callDestructionListener) { m_particleSystem.destroyParticle(index, callDestructionListener); }
public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) { for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) { destroyParticle(i, callDestructionListener); } }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) { for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) { destroyParticle(i, callDestructionListener); } }
/** * Destroy a particle. The particle is removed after the next step. * * @param index of the particle to destroy * @param callDestructionListener whether to call the destruction listener just before the particle is destroyed */ public void destroyParticle(int index, boolean callDestructionListener) { particleSystem.destroyParticle(index, callDestructionListener); }
/** * Destroy a particle. The particle is removed after the next step. * * @param Index of the particle to destroy. * @param Whether to call the destruction listener just before the particle is destroyed. */ public void destroyParticle(int index, boolean callDestructionListener) { m_particleSystem.destroyParticle(index, callDestructionListener); }
public void destroyParticlesInGroup(ParticleGroup group, boolean callDestructionListener) { for (int i = group.m_firstIndex; i < group.m_lastIndex; i++) { destroyParticle(i, callDestructionListener); } }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }
@Override public boolean reportParticle(int index) { assert (index >= 0 && index < system.m_count); if (shape.testPoint(xf, system.m_positionBuffer.data[index])) { system.destroyParticle(index, callDestructionListener); destroyed++; } return true; } }