Obi Official Forum
Help Check if rope is on top of other rope! - Printable Version

+- Obi Official Forum (http://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (http://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Rope (http://obi.virtualmethodstudio.com/forum/forum-4.html)
+--- Thread: Help Check if rope is on top of other rope! (/thread-2341.html)



Check if rope is on top of other rope! - Kifwat - 25-06-2020

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,


RE: Check if rope is on top of other rope! - josemendez - 26-06-2020

(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/tutorials/scriptingcollisions.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/tutorials/scriptingparticles.html