mirror of
https://github.com/bulletphysics/bullet3.git
synced 2026-10-10 10:55:37 +00:00
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);
|
||||
|
||||
if (lambda > btScalar(1.0))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( VdotW > btScalar(0.))
|
||||
{
|
||||
VdotR = v.dot(r);
|
||||
|
||||
Reference in New Issue
Block a user