Skip to content

Commit

Permalink
Fix for issue79
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed Mar 1, 2019
1 parent 95aef3d commit f3ea557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/collision/narrowphase/SAT/SATAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,8 @@ bool SATAlgorithm::testCollisionConvexPolyhedronVsConvexPolyhedron(NarrowPhaseIn
}

// If the shapes were overlapping on the previous axis and still seem to overlap in this frame
if (lastFrameCollisionInfo->wasColliding && penetrationDepth > decimal(0.0)) {
if (lastFrameCollisionInfo->wasColliding && penetrationDepth > decimal(0.0) &&
penetrationDepth < DECIMAL_LARGEST) {

assert(penetrationDepth < DECIMAL_LARGEST);

Expand Down

0 comments on commit f3ea557

Please sign in to comment.