re-introduce the radius/epsilon removed in a previous commit, it is necessary for termination.
This commit is contained in:
@@ -87,6 +87,7 @@ bool btContinuousConvexCollision::calcTimeOfImpact(
|
|||||||
btSphereShape raySphere(btScalar(0.0));
|
btSphereShape raySphere(btScalar(0.0));
|
||||||
raySphere.setMargin(btScalar(0.));
|
raySphere.setMargin(btScalar(0.));
|
||||||
|
|
||||||
|
btScalar radius = 0.001f;
|
||||||
// result.drawCoordSystem(sphereTr);
|
// result.drawCoordSystem(sphereTr);
|
||||||
|
|
||||||
btPointCollector pointCollector1;
|
btPointCollector pointCollector1;
|
||||||
@@ -115,7 +116,7 @@ bool btContinuousConvexCollision::calcTimeOfImpact(
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//not close enough
|
//not close enough
|
||||||
while (dist > SIMD_EPSILON)
|
while (dist > radius)
|
||||||
{
|
{
|
||||||
if (result.m_debugDrawer)
|
if (result.m_debugDrawer)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user