Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 committed Jul 3, 2024
1 parent 5a05b5d commit 9117975
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions bullet-featherstone/src/Base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,12 @@ void GzCollisionDispatcher::dispatchAllCollisionPairs(
continue;
}

int numContacts = contactManifold->getNumContacts();
totalContacts += numContacts;

const btCompoundShape *compoundShape0 =
dynamic_cast<const btCompoundShape *>(ob0->getCollisionShape());
const btCompoundShape *compoundShape1 =
dynamic_cast<const btCompoundShape *>(ob1->getCollisionShape());
const btCompoundShape *compoundShape0 =
dynamic_cast<const btCompoundShape *>(ob0->getCollisionShape());
const btCompoundShape *compoundShape1 =
dynamic_cast<const btCompoundShape *>(ob1->getCollisionShape());

int numContacts = contactManifold->getNumContacts();
for (int j = 0; j < numContacts; ++j)
{
btManifoldPoint& pt = contactManifold->getContactPoint(j);
Expand Down

0 comments on commit 9117975

Please sign in to comment.