30-11-2021, 02:09 PM
(29-11-2021, 08:13 AM)josemendez Wrote: 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.
So how do we realize that the contact has ended? just like onCollisionExit