29-11-2021, 08:13 AM
(27-11-2021, 02:20 PM)greyhawk Wrote: How can I check if two or more ropes are touching each other? As a result of this contact, there will be a flexibility exchange that I want to do.
Hi there!
Just use collision callbacks. However instead of subscribing to OnCollision (which returns simplex-collider contacts) subscribe to OnParticleCollision (which returns simplex-simplex contacts). See:
http://obi.virtualmethodstudio.com/manua...sions.html
Then for each contact follow the steps in "Retrieving the actor involved in a contact" for both bodyA and bodyB in the contact. This way you'll get the two ropes involved in the contact.