bullet3
bullet3 copied to clipboard
Fix crash due to wrong manifold being released in btCollisionDispatcherMt
We need to set the correct value in index1a when adding manifolds from the batch. This must happen before we release manifolds because it relies on the value in index1a. Otherwise this can cause missing contacts or dangling manifold pointers which causes intermittent crashes
Re-created PR due to wrong branch being used