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:
parent
02f77f315e
commit
0a883f3832
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user