account for raddi in simplified sphere vs. hull test

This commit is contained in:
Irlan 2018-05-16 16:21:20 -03:00
parent 69ee19ffac
commit 631048668f

View File

@ -374,7 +374,7 @@ bool b3HullShape::TestSphere(b3TestSphereOutput* output, const b3Sphere& sphere,
if (maxIndex != ~0)
{
output->separation = maxSeparation;
output->separation = maxSeparation - radius;
output->normal = b3Mul(xf.rotation, m_hull->GetPlane(maxIndex).normal);
return true;
}