From 82c7c5f29a7d926158c20ce24a9062e88e6ee1fe Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Mon, 21 May 2018 20:42:39 +0200 Subject: [PATCH] Fix issue in broad-phase collision detection --- CHANGELOG.md | 6 ++++++ src/collision/broadphase/BroadPhaseAlgorithm.cpp | 1 + 2 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cf9d833..7727299c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## Release Candidate + +### Fixed + + - Bug [#45](https://github.com/DanielChappuis/reactphysics3d/issues/45) has been fixed. + ## Version 0.7.0 (May 1, 2018) ### Added diff --git a/src/collision/broadphase/BroadPhaseAlgorithm.cpp b/src/collision/broadphase/BroadPhaseAlgorithm.cpp index 5191c001..83253346 100644 --- a/src/collision/broadphase/BroadPhaseAlgorithm.cpp +++ b/src/collision/broadphase/BroadPhaseAlgorithm.cpp @@ -264,6 +264,7 @@ void BroadPhaseAlgorithm::computeOverlappingPairs(MemoryManager& memoryManager) // Reset the array of collision shapes that have move (or have been created) during the // last simulation step mNbMovedShapes = 0; + mNbNonUsedMovedShapes = 0; // Sort the array of potential overlapping pairs in order to remove duplicate pairs std::sort(mPotentialPairs, mPotentialPairs + mNbPotentialPairs, BroadPhasePair::smallerThan);