Move set is now a bitset to support large worlds (#5)

Added supporting benchmark
This commit is contained in:
Erin Catto 2026-05-13 21:01:34 -07:00 • committed by GitHub
commit aedb0e34aa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 187 additions and 37 deletions

View file

@ -2181,7 +2181,7 @@ void b3Solve( b3World* world, b3StepContext* stepContext )
B3_ASSERT( B3_PROXY_TYPE( proxyKey ) == b3_dynamicBody );
// all fast bullet shapes should already be in the move buffer
B3_ASSERT( b3ContainsKey( &broadPhase->moveSet, proxyKey + 1 ) );
B3_ASSERT( b3GetBit( &broadPhase->movedProxies[b3_dynamicBody], proxyId ) );
b3DynamicTree_EnlargeProxy( dynamicTree, proxyId, shape->fatAABB );