Page 1 of 1

Sphere / Box collision generates multiple contact points

Posted: Mon Apr 06, 2009 8:24 am
by Mathieu Colleaux
Hello,

I am experiencing some troubles with the collision detection in Bullet. During a collision between a sphere and a box there are more than one contact point generated, which is not physically possible. I would like to know if anybody have already experienced that and how to solve it.

Thanks in advance,

M. Colleaux

Re: Sphere / Box collision generates multiple contact points

Posted: Tue Apr 21, 2009 3:01 pm
by slithEToves
Bullet allows some penetration, and because of this, you can have multiple contact points. Bullet keeps up to 4 points, 3 to specify a contact triangle, and 1 that represents the deepest point of penetration. In your case, if you only want to consider 1 point, you can most likely just use the point with deepest penetration.