CMake improvements (#201)

- Update CMake to parity with Box2D. Removed BOX3D_AVX2 due to runtime
dispatch.
- CI fixes for ubuntu
- Doxygen refresh from Box2D
This commit is contained in:
Erin Catto 2026-10-20 15:15:20 -07:00 • committed by GitHub
commit f36d061ba2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 724 additions and 251 deletions

View file

@ -892,6 +892,9 @@ b3BodyTOIResult b3Body_TimeOfImpactMover( b3BodyId bodyId, b3Pos origin, const b
return result;
}
// This computes the deviation of the principal inertia values without computing eigenvalues.
// It computes:
// ((I1 - I2)^2 + (I1 - I3)^2 + (I2 - I3)^2) / (I1^2 + I2^2 + I3^2)
// https://en.wikipedia.org/wiki/Cauchy_stress_tensor#Stress_deviator_tensor
static void b3UpdateIsotropicInertia( b3World* world, b3Body* body, b3BodySim* bodySim )
{