First try to fix #2522 (soccer ball pushed in air). Needs to be tested,

and puck still needs to be done.
This commit is contained in:
hiker 2016-06-20 15:10:58 +10:00
parent 02f77f315e
commit 0a883f3832

View File

@ -152,8 +152,9 @@ bool SphereTriangleDetector::collide(const btVector3& sphereCenter,btVector3 &po
if (distanceSqr>SIMD_EPSILON)
{
btScalar distance = btSqrt(distanceSqr);
resultNormal = contactToCentre;
resultNormal.normalize();
//resultNormal = contactToCentre;
//resultNormal.normalize();
resultNormal = normal;
point = contactPoint;
depth = -(radius-distance);
} else