11-05-2021, 07:36 AM
(This post was last modified: 11-05-2021, 08:08 AM by josemendez.)
Hi there,
Your code is incorrect: you're using contact.bodyA and bodyB as if they were particle indices, but they're simplex indices. This will result in pretty much random results, or even out of bounds array access exceptions. See the docs:
http://obi.virtualmethodstudio.com/tutor...sions.html
Specifically, the "Retrieving the particle involved in a contact" section.
Let me know if you need further help.
cheers!
Your code is incorrect: you're using contact.bodyA and bodyB as if they were particle indices, but they're simplex indices. This will result in pretty much random results, or even out of bounds array access exceptions. See the docs:
http://obi.virtualmethodstudio.com/tutor...sions.html
Specifically, the "Retrieving the particle involved in a contact" section.
Let me know if you need further help.
cheers!