collisionObject: renamed uniqueId to worldArrayIndex; removed linear search in removeCollisionObject

This commit is contained in:
Lunkhound
2016-11-12 12:41:55 -08:00
parent 3b5d0f444b
commit 2f4ec4f8c9
6 changed files with 30 additions and 17 deletions

View File

@@ -751,7 +751,7 @@ int btSequentialImpulseConstraintSolver::getOrInitSolverBody(btCollisionObject&
// Kinematic bodies can be in multiple islands at once, so it is a
// race condition to write to them, so we use an alternate method
// to record the solverBodyId
int uniqueId = body.getUniqueId();
int uniqueId = body.getWorldArrayIndex();
const int INVALID_SOLVER_BODY_ID = -1;
if (uniqueId >= m_kinematicBodyUniqueIdToSolverBodyTable.size())
{