More static queries (#216)

- and a data race fix for it
- compare mesh versus heightfield
This commit is contained in:
Erin Catto 2026-11-11 17:41:42 -08:00 • committed by GitHub
commit a8ac09f364
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 486 additions and 183 deletions

View file

@ -301,8 +301,8 @@ void b3PrepareSphericalJoint( b3JointSim* base, b3StepContext* context )
b3Body* bodyB = b3Array_Get( world->bodies, base->bodyIdB );
B3_ASSERT( bodyA->setIndex == b3_awakeSet || bodyB->setIndex == b3_awakeSet );
b3SolverSet* setA = b3Array_Get( world->solverSets, bodyA->setIndex );
b3SolverSet* setB = b3Array_Get( world->solverSets, bodyB->setIndex );
b3SolverSet* setA = b3GetFixedSolverSet( world, bodyA->setIndex );
b3SolverSet* setB = b3GetFixedSolverSet( world, bodyB->setIndex );
int localIndexA = bodyA->localIndex;
int localIndexB = bodyB->localIndex;