            if slice.iter().map(|x| x.position).all_equal() {
                slice.iter_mut().for_each(|x| x.destroyed = true);
            }
        }

        destroyed.extend(particles.iter().filter(|x| x.destroyed).cloned());
        particles.retain(|x| !x.destroyed);
    }
