Fix issue in broad-phase collision detection
This commit is contained in:
parent
cd1661613f
commit
82c7c5f29a
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user