Obi Official Forum
Help How to count particles - 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: Help How to count particles (/thread-3721.html)



How to count particles - mustafagulsoy - 04-01-2023

Hi Everbody,
I making a simulation and I need to count particles in a area, for example I set a cube trigger and calculate how much particle inside in this cube.
Is this possible on Obi ,and if it does, how can I do that Sonrisa


RE: How to count particles - josemendez - 04-01-2023

(04-01-2023, 01:35 PM)mustafagulsoy Wrote: Hi Everbody,
I making a simulation and I need to count particles in a area, for example I set a cube trigger and calculate how much particle inside in this cube.
Is this possible on Obi ,and if it does, how can I do that Sonrisa

Hi!

Yes, just use collision callbacks to count the amount of particles inside a trigger collider. See:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html

Let me know if you need further help,

Kind regards


RE: How to count particles - mustafagulsoy - 05-01-2023

(04-01-2023, 07:53 PM)josemendez Wrote: Hi!

Yes, just use collision callbacks to count the amount of particles inside a trigger collider. See:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html

Let me know if you need further help,

Kind regards
Thank you for fast answer now I can count it but with collider not trigger, how can I create a trigger on obi fluids?

Best regards


RE: How to count particles - josemendez - 05-01-2023

(05-01-2023, 04:11 PM)mustafagulsoy Wrote: Thank you for fast answer now I can count it but with collider not trigger, how can I create a trigger on obi fluids?

Best regards

Triggers work the exact same way, just enable the “trigger” checkbox on your collider.

Kind regards,


RE: How to count particles - mustafagulsoy - 10-01-2023

(05-01-2023, 10:58 PM)josemendez Wrote: Triggers work the exact same way, just enable the “trigger” checkbox on your collider.

Kind regards,
Thank you so much These all solve my problem.