Obi Official Forum

Full Version: Check if rope is on top of other rope!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello, 

I need to set a condition that return true when there's no rope below or above another rope. is there any way to achieve this?

Thanks,
(25-06-2020, 08:42 PM)Kifwat Wrote: [ -> ]Hello, 

I need to set a condition that return true when there's no rope below or above another rope. is there any way to achieve this?

Thanks,

You'll have to write this yourself, as it's a really specific use case.

If you need the ropes to actually touch each other, you can use the solver's OnParticleCollision event. Then, filter contacts between the ropes. See:
http://obi.virtualmethodstudio.com/tutor...sions.html

If the ropes do not actually have to be touching, but merely above or below each other, you can use the particle API to determine this using particle positions:
http://obi.virtualmethodstudio.com/tutor...icles.html