Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Obi rope self-collision detection
#1
Información 
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?
Reply
#2
(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,
Reply
#3
(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
Reply
#4
(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,
Reply
#5
(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!
Reply