05-09-2022, 01:58 PM
(05-09-2022, 01:51 PM)josemendez Wrote: Yes, as I explained this will add one to the counter every frame a particle is in contact with the collider. So unless particles are only in contact for one frame (which is highly unlikely), it will return a number far greater than 400.
What you want is to determine if a particle has already been counted and if so, ignore it. There's many ways to do this, easiest is to use a hash set. See:
http://obi.virtualmethodstudio.com/forum...=collision
Yes, I found the post you shared while doing research.
"idToCollider" "particle" syntaxes appear as console errors.