Obi Official Forum
Help How to detect collision? - 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 detect collision? (/thread-2340.html)



How to detect collision? - anulagarwal - 25-06-2020

Hi,
I want to detect collision between ObiEmitter particles & a cube (ObiCollision Attached)

How can this be done?
Which method should I call?

Thanks


RE: How to detect collision? - josemendez - 26-06-2020

(25-06-2020, 08:23 PM)anulagarwal Wrote: Hi,
I want to detect collision between ObiEmitter particles & a cube (ObiCollision Attached)

How can this be done?
Which method should I call?

Thanks

Hi there,

You should use the solver's OnCollision event. See:
http://obi.virtualmethodstudio.com/tutorials/scriptingcollisions.html