Fix issue in collision detection
This commit is contained in:
parent
a50ae73663
commit
99eb7cf82c
|
@ -230,11 +230,11 @@ void CollisionDetection::computeMiddlePhase() {
|
||||||
// Add all the narrow-phase info object reported by the callback into the
|
// Add all the narrow-phase info object reported by the callback into the
|
||||||
// list of all the narrow-phase info object
|
// list of all the narrow-phase info object
|
||||||
while (narrowPhaseInfo != nullptr) {
|
while (narrowPhaseInfo != nullptr) {
|
||||||
NarrowPhaseInfo* head = mNarrowPhaseInfoList;
|
NarrowPhaseInfo* next = narrowPhaseInfo->next;
|
||||||
|
narrowPhaseInfo->next = mNarrowPhaseInfoList;
|
||||||
mNarrowPhaseInfoList = narrowPhaseInfo;
|
mNarrowPhaseInfoList = narrowPhaseInfo;
|
||||||
mNarrowPhaseInfoList->next = head;
|
|
||||||
|
|
||||||
narrowPhaseInfo = narrowPhaseInfo->next;
|
narrowPhaseInfo = next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Concave vs Concave shape
|
// Concave vs Concave shape
|
||||||
|
|
Loading…
Reference in New Issue
Block a user