Don't return true when the hit happens after the end point
This commit is contained in:
@@ -88,6 +88,11 @@ bool btSubsimplexConvexCast::calcTimeOfImpact(
|
|||||||
|
|
||||||
btScalar VdotW = v.dot(w);
|
btScalar VdotW = v.dot(w);
|
||||||
|
|
||||||
|
if (lambda > btScalar(1.0))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if ( VdotW > btScalar(0.))
|
if ( VdotW > btScalar(0.))
|
||||||
{
|
{
|
||||||
VdotR = v.dot(r);
|
VdotR = v.dot(r);
|
||||||
|
|||||||
Reference in New Issue
Block a user