fix bug for convex-convex polyhedral contact clipping, where the origin of the object is not located inside the convex hull of the vertices.

This commit is contained in:
erwin.coumans
2012-09-23 18:35:19 +00:00
parent 182c3034de
commit 60c1b1918a

View File

@@ -276,8 +276,7 @@ bool btPolyhedralContactClipping::findSeparatingAxis( const btConvexPolyhedron&
}
const btVector3 deltaC = transB.getOrigin() - transA.getOrigin();
if((deltaC.dot(sep))>0.0f)
if((DeltaC2.dot(sep))>0.0f)
sep = -sep;
return true;