From bbe301fff813f78d0e5814c9003325580e03ea1c Mon Sep 17 00:00:00 2001 From: ejcoumans Date: Fri, 6 Oct 2006 22:01:29 +0000 Subject: [PATCH] lowered safety limit to 32, and added link/comment to forum --- .../NarrowPhaseCollision/btSubSimplexConvexCast.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp b/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp index 8f164f288..dc995ca1f 100644 --- a/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp +++ b/src/BulletCollision/NarrowPhaseCollision/btSubSimplexConvexCast.cpp @@ -26,8 +26,9 @@ m_convexA(convexA),m_convexB(convexB) { } - -#define MAX_ITERATIONS 1000 +///Typically the conservative advancement reaches solution in a few iterations, clip it to 32 for degenerate cases. +///See discussion about this here http://continuousphysics.com/Bullet/phpBB2/viewtopic.php?t=565 +#define MAX_ITERATIONS 32 bool btSubsimplexConvexCast::calcTimeOfImpact( const btTransform& fromA,