10-02-2018, 06:23 PM
(09-02-2018, 09:21 PM)shreypareek1991 Wrote: Hello
I am trying to do a pouring task wherein the user is required to collect water from a faucet in one cup, and transfer it to another.
The final score is determined by the number of particles that were poured from the first cup to the second.
So for instance -How can I keep track of these numbers?
- Let us assume total particles are 1000.
- The user collects about 800 (misses 200 in the beginning).
- And finally pours 200 (600 fall on the ground) into the second cup.
- So the final score is 200.
Hi,
Just use collision callbacks and a trigger collider. Then count how many particles are inside the trigger during any given frame:
http://obi.virtualmethodstudio.com/tutor...sions.html