Fix issue in collision detection

This commit is contained in:
Daniel Chappuis 2017-01-19 21:27:58 +01:00
parent a50ae73663
commit 99eb7cf82c

View File

@ -230,11 +230,11 @@ void CollisionDetection::computeMiddlePhase() {
// Add all the narrow-phase info object reported by the callback into the
// list of all the narrow-phase info object
while (narrowPhaseInfo != nullptr) {
NarrowPhaseInfo* head = mNarrowPhaseInfoList;
NarrowPhaseInfo* next = narrowPhaseInfo->next;
narrowPhaseInfo->next = mNarrowPhaseInfoList;
mNarrowPhaseInfoList = narrowPhaseInfo;
mNarrowPhaseInfoList->next = head;
narrowPhaseInfo = narrowPhaseInfo->next;
narrowPhaseInfo = next;
}
}
// Concave vs Concave shape