Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  How to count particles
#1
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
Reply
#2
(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/manua...sions.html

Let me know if you need further help,

Kind regards
Reply
#3
(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/manua...sions.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
Reply
#4
(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,
Reply
#5
Dedo arriba 
(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.
Reply