Obi Official Forum

Full Version: Obi rope self-collision detection
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
(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/manua...sions.html

kind regards,
(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/manua...sions.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
(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,
(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!