Skip to content

Commit

Permalink
Reviews comments
Browse files Browse the repository at this point in the history
Signed-off-by: Tomas Lorente <[email protected]>
  • Loading branch information
Lobotuerk committed Dec 3, 2020
1 parent 62f1900 commit 30ae58a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions bullet/src/SDFFeatures.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ Identity SDFFeatures::ConstructSdfCollision(
delete link->getCollisionShape();
link->setCollisionShape(shape);

// We add the rigidbody to the world after it has collision, as
// non collision bodies don't get simulated on a dynamics world
world->addRigidBody(link);

return this->AddCollision({_collision.Name(), shape, _linkID,
Expand Down
7 changes: 5 additions & 2 deletions bullet/src/SimulationFeatures.hh
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ class SimulationFeatures :

public: std::vector<ContactInternal> GetContactsFromLastStep(
const Identity &/* _worldID */) const override
{ // TODO(lobotuerk): Implement contacts getter, could be like https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=2855
return std::vector<ContactInternal>(); };
{
// TODO(lobotuerk): Implement contacts getter, could be like https://pybullet.org/Bullet/phpBB3/viewtopic.php?t=2855
ignerr << "Dummy GetContactsFromLastStep implementation";
return std::vector<ContactInternal>();
};
};

}
Expand Down

0 comments on commit 30ae58a

Please sign in to comment.