24-10-2020, 06:47 AM
(23-10-2020, 12:10 PM)josemendez Wrote: What this does is it counts the amount of new particle hits any collider has experienced (cumulative over time), and stores that in the "counter" variable. Works perfectly fine. Note that the number logged to the console is the total amount of current contacts with *any* collider or trigger in the scene, the "targetCollider" variable is completely unused in the script.
What is it that you want to count?
First of all, thank you very much for your quick and accurate response.
My problem is that the number of particles released from the emitter is counting from before they hit the ground(here ground is designed as targetcollider).
I want to know the number of water particles that hit the ground.
and, i have a question, "the "targetCollider" variable is completely unused in the script." what does it mean?