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