Obi Official Forum
Help Detecting collision of two ropes - 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 Detecting collision of two ropes (/thread-3597.html)



Detecting collision of two ropes - KaanOzcelik - 20-09-2022

I want to detect if two rope objects are colliding with each other via script. How can I achieve this? Do I need to have colliders and obi colliders in my actor objects? Or can I detect particle collisions? I couldn't get OnParticleCollision to work by the way.

Thank you very much in advance!


RE: Detecting collision of two ropes - josemendez - 20-09-2022

(20-09-2022, 01:55 PM)KaanOzcelik Wrote: I want to detect if two rope objects are colliding with each other via script. How can I achieve this? Do I need to have colliders and obi colliders in my actor objects?
Thank you very much in advance!

Adding colliders to a ObiActor does not make sense, since particles already deal with collisions themselves.

(20-09-2022, 01:55 PM)KaanOzcelik Wrote: Or can I detect particle collisions? I couldn't get OnParticleCollision to work by the way.

Yes you can detect particle collisions using OnParticleCollision. You mention that it didn't work for you, can you share the code you wrote for this?