Obi Official Forum
Suggestion / Idea Amount of liquid in bucket - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Suggestion / Idea Amount of liquid in bucket (/thread-2397.html)



Amount of liquid in bucket - 0xhex - 01-08-2020

Hello,can you help me about calculating about amount of liquid in bucket?
Thank you,

[Image: Ekran-Resmi-2020-08-01-22-20-59.png]


RE: Amount of liquid in bucket - josemendez - 03-08-2020

(01-08-2020, 08:30 PM)0xhex Wrote: Hello,can you help me about calculating about amount of liquid in bucket?
Thank you,

[Image: Ekran-Resmi-2020-08-01-22-20-59.png]

When you say "amount", do you mean number of particles, volume, or some other quantity?

To measure this, you can use a trigger collider encompassing the bucket, then subscribe to the solver's OnCollision event and detect all particles inside the trigger. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html