Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Collision works buggy
#2
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!
Reply


Messages In This Thread
Collision works buggy - by boulder - 11-05-2021, 01:33 AM
RE: Collision works buggy - by josemendez - 11-05-2021, 07:36 AM
RE: Collision works buggy - by boulder - 11-05-2021, 04:20 PM
RE: Collision works buggy - by josemendez - 12-05-2021, 08:52 AM