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:
@@ -276,8 +276,7 @@ bool btPolyhedralContactClipping::findSeparatingAxis( const btConvexPolyhedron&
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const btVector3 deltaC = transB.getOrigin() - transA.getOrigin();
|
if((DeltaC2.dot(sep))>0.0f)
|
||||||
if((deltaC.dot(sep))>0.0f)
|
|
||||||
sep = -sep;
|
sep = -sep;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user