This commit is contained in:
Erin Catto 2026-10-19 23:06:20 -07:00
commit 1ad7cba87f
4 changed files with 11 additions and 1 deletions

View file

@ -106,6 +106,8 @@ static void b3IntegrateVelocitiesTask( b3SolverBlock block, b3StepContext* conte
// I * (w2 - w1) + h * cross(w2, I * w2) = 0
// This is all done in local coordinates where the Jacobian is easier to compute.
// This improves the simulation of long skinny bodies.
// If the principal inertia values of I are roughly equal (isotropic) then
// cross(w2, I * w2) ~= 0, so this can be skipped.
if ( sim->flags & b3_enableGyroscopicTorque )
{
// Get current rotation.