From 85a1186e032822c3608e5319dde3fb27922c10db Mon Sep 17 00:00:00 2001 From: Erin Catto Date: Wed, 11 Nov 2026 16:02:25 -0800 Subject: [PATCH] comment --- src/physics_world.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/physics_world.h b/src/physics_world.h index ae93808..2b3941c 100644 --- a/src/physics_world.h +++ b/src/physics_world.h @@ -149,6 +149,8 @@ typedef struct b3World // Solvers sets allow body sims to be stored in contiguous arrays. The first holds static bodies. The second set // holds disabled bodies. The third holds awake bodies. A growable array holds the sleeping islands. + // This is split up so that the static set can be accessed without being remapped during a static query while + // the physics step is concurrently putting an island to sleep (race condition). b3SolverSet fixedSets[b3_firstSleepingSet]; b3Array( b3SolverSet ) sleepingSets;