Fixes 03 (#40)

Fixes #33, #34, #35, #37, #39, #41, #42, #43

Also fixes b3Body_SetMassData inertia tensor.
This commit is contained in:
Erin Catto 2026-07-03 17:15:03 -07:00 • committed by GitHub
commit 655799893a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 771 additions and 151 deletions

View file

@ -297,6 +297,11 @@ static b3ShapeId b3CreateShape( b3BodyId bodyId, const b3ShapeDef* def, const vo
{
b3UpdateBodyMassData( world, body );
}
else if ( ( body->flags & b3_dirtyMass ) == 0 )
{
body->flags |= b3_dirtyMass;
b3SyncBodyFlags( world, body );
}
b3ValidateSolverSets( world );