Update x_norm in tetrahedron case in GJK.

This check is never called due to the fallback to gjkIntersection, however it's needed for debugging when disabling the fallback.

PiperOrigin-RevId: 792623394
Change-Id: I7178d9afae697bd22984688e89fd1865d3c6a37f
This commit is contained in:
Kyle Bayes
2025-08-08 07:50:41 -07:00
committed by Copybara-Service
parent 19781b60a1
commit 50fa598d93
+1
View File
@@ -278,6 +278,7 @@ static void gjk(mjCCDStatus* status, mjCCDObj* obj1, mjCCDObj* obj2) {
// we have a tetrahedron containing the origin so return early
if (n == 4) {
x_norm = 0;
break;
}
}