Hi,
I’m trying to get rid of duplicate particles that are at the same spot as another particle. I’ve created this scratchpad module that is supposed to set a bool, which is then used in a “KillParticle” module.
However it doesn’t really work - it kills some particles, sometimes. It’s very random, even though the system is set to be deterministic. I’m wondering if there’s something obvious I’m missing here. Thanks!
This works better, but still removes some particles that shouldn’t be removed and keeps duplicates, depending on the amount of particles spawned. My guess is that this has to do with the fact that it’s a GPU emitter and there’s something going on with the particle identifiers/indexes, but I’m not sure what exactly and how to fix it.
Also, the reason why I switched to GPU was that with CPU the for loop didn’t seem to work (“Current Iteration” in Map For Index would always be zero). Is that how it’s supposed to be?