diff --git a/src/bounce/dynamics/shapes/hull_shape.cpp b/src/bounce/dynamics/shapes/hull_shape.cpp index cb43a13..0521a05 100644 --- a/src/bounce/dynamics/shapes/hull_shape.cpp +++ b/src/bounce/dynamics/shapes/hull_shape.cpp @@ -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; }