Obi Official Forum
Help Obi rope self-collision detection - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (https://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Obi rope self-collision detection (/thread-3553.html)



Obi rope self-collision detection - serhatisbilir - 12-08-2022

Hi, I'm using current latest version of Obi Rope and I want to find simplest way to detect self-collision but unfortunately I can't do it. Is there a solution I missed?


RE: Obi rope self-collision detection - josemendez - 12-08-2022

(12-08-2022, 12:34 PM)serhatisbilir Wrote: Hi, I'm using current latest version of Obi Rope and I want to find simplest way to detect self-collision but unfortunately I can't do it. Is there a solution I missed?

Hi,

Just subscribe to the solver's OnParticleCollision event, and look for contacts between particles belonging to the same rope. This allows you to tell when a self-collision has happened. See: http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html

kind regards,


RE: Obi rope self-collision detection - serhatisbilir - 12-08-2022

(12-08-2022, 12:49 PM)josemendez Wrote: Hi,

Just subscribe to the solver's OnParticleCollision event, and look for contacts between particles belonging to the same rope. This allows you to tell when a self-collision has happened. See: http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html

kind regards,

Thanks for quick reply!

Here is my scene; https://imgur.com/a/Jd7hooQ

I just subscribed to solver's OnParticleCollision but I'm always receiving contact list with no elements in it.
Note ; self collisions enabled



RE: Obi rope self-collision detection - josemendez - 12-08-2022

(12-08-2022, 01:05 PM)serhatisbilir Wrote: Thanks for quick reply!

Here is my scene; https://imgur.com/a/Jd7hooQ

I just subscribed to solver's OnParticleCollision but I'm always receiving contact list with no elements in it.
Note ; self collisions enabled

Are particle collision constraints enabled at all in the ObiSolver component? In the image, the rope seems to be self-intersecting, there's no particle collisions going on.

kind regards,


RE: Obi rope self-collision detection - serhatisbilir - 12-08-2022

(12-08-2022, 01:10 PM)josemendez Wrote: Are particle collision constraints enabled at all in the ObiSolver component? In the image, the rope seems to be self-intersecting, there's no particle collisions going on.

kind regards,

Oh shoot I'm completely forgot about constraints  Gran sonrisa
It's working very well now, thanks so much!