Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Segregation of instructions to each rope at the time of collision
#2
Hi,

Collision callbacks return all contacts for all actors in the solver,  you can't just grab any contact and then change the color of the current actor, as the contact might be generated by a different one. What you want to do instead is:

- Iterate over all contacts in the solver just once! (not once per rope, as that would quickly become really slow and impractical as you point out).
- See which actor is involved in the contact.
- Change the color of that actor.

The manual contains examples on how to retrieve the actor involved in a contact, see:
http://obi.virtualmethodstudio.com/tutor...sions.html
Reply


Messages In This Thread
RE: Segregation of instructions to each rope at the time of collision - by josemendez - 26-02-2021, 01:27 PM