Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Check ropes touching each other
#2
(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.
Reply


Messages In This Thread
Check ropes touching each other - by greyhawk - 27-11-2021, 02:20 PM
RE: Check ropes touching each other - by josemendez - 29-11-2021, 08:13 AM
RE: Check ropes touching each other - by greyhawk - 30-11-2021, 02:09 PM
RE: Check ropes touching each other - by greyhawk - 30-11-2021, 04:36 PM
RE: Check ropes touching each other - by greyhawk - 01-12-2021, 02:34 PM