Skip to content

Commit

Permalink
fix edge case
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Dec 27, 2023
1 parent a2bcbf0 commit 9da1af3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dartsim/src/GzOdeCollisionDetector.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ void GzOdeCollisionDetector::LimitMaxContacts(
auto allContacts = _result->getContacts();
_result->clear();


if (this->maxCollisionPairContacts == 0u)
return;

// A map of collision pairs and their their contact info
// Contact info is stored in std::pair. The elements are:
// <contact count, index of last contact point (in _result)>
Expand Down

0 comments on commit 9da1af3

Please sign in to comment.