Obi Official Forum
Help Rope Chain Collision - 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 Rope Chain Collision (/thread-3844.html)



Rope Chain Collision - emreaa - 17-04-2023

How can I understand whether the ropes we created using chain renderer in obi rope are in contact with each other, can you share an example code?
(all threads in one solver)


RE: Rope Chain Collision - josemendez - 17-04-2023

(17-04-2023, 10:16 AM)emreaa Wrote: How can I understand whether the ropes we created using chain renderer in obi rope are in contact with each other, can you share an example code?
(all threads in one solver)

Hi,

There's sample code for this in the manual:
http://obi.virtualmethodstudio.com/manual/6.3/scriptingcollisions.html

See "Retrieving the actor involved in a contact". You just get the ParticleInActor struct for each particle involved in a contact, and check their "actor" member variables to see if they're the ropes you're interested in.

let me know if I can be of further help,

kind regards