Don't return true when the hit happens after the end point

This commit is contained in:
john.mccutchan
2008-05-21 18:37:41 +00:00
parent e7aa93af36
commit 09fbd19279

View File

@@ -88,6 +88,11 @@ bool btSubsimplexConvexCast::calcTimeOfImpact(
btScalar VdotW = v.dot(w);
if (lambda > btScalar(1.0))
{
return false;
}
if ( VdotW > btScalar(0.))
{
VdotR = v.dot(r);