Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Number of Fluid Particles in Container
#1
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 -
  • 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.
How can I keep track of these numbers?
Reply
#2
(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 -
  • 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.
How can I keep track of these numbers?

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
Reply
#3
(10-02-2018, 06:23 PM)josemendez Wrote: 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

Thank you Jose.
That worked.
Reply