Fix issue in broad-phase collision detection

This commit is contained in:
Daniel Chappuis 2018-05-21 20:42:39 +02:00
parent cd1661613f
commit 82c7c5f29a
2 changed files with 7 additions and 0 deletions

View File

@ -1,5 +1,11 @@
# Changelog # Changelog
## Release Candidate
### Fixed
- Bug [#45](https://github.com/DanielChappuis/reactphysics3d/issues/45) has been fixed.
## Version 0.7.0 (May 1, 2018) ## Version 0.7.0 (May 1, 2018)
### Added ### Added

View File

@ -264,6 +264,7 @@ void BroadPhaseAlgorithm::computeOverlappingPairs(MemoryManager& memoryManager)
// Reset the array of collision shapes that have move (or have been created) during the // Reset the array of collision shapes that have move (or have been created) during the
// last simulation step // last simulation step
mNbMovedShapes = 0; mNbMovedShapes = 0;
mNbNonUsedMovedShapes = 0;
// Sort the array of potential overlapping pairs in order to remove duplicate pairs // Sort the array of potential overlapping pairs in order to remove duplicate pairs
std::sort(mPotentialPairs, mPotentialPairs + mNbPotentialPairs, BroadPhasePair::smallerThan); std::sort(mPotentialPairs, mPotentialPairs + mNbPotentialPairs, BroadPhasePair::smallerThan);