Obi Official Forum

Full Version: Rope Chain Collision
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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)
(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/manua...sions.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