33 #ifndef DART_COLLISION_COLLISIONRESULT_HPP_
34 #define DART_COLLISION_COLLISIONRESULT_HPP_
37 #include <unordered_set>
71 const std::unordered_set<const dynamics::BodyNode*>&
75 const std::unordered_set<const dynamics::ShapeFrame*>&
88 operator bool()
const;
std::size_t index
Definition: SkelParser.cpp:1617
Definition: CollisionObject.hpp:45
Definition: CollisionResult.hpp:52
std::size_t getNumContacts() const
Return number of contacts.
Definition: CollisionResult.cpp:52
void addObject(CollisionObject *object)
Definition: CollisionResult.cpp:126
void clear()
Clear all the contacts.
Definition: CollisionResult.cpp:118
std::unordered_set< const dynamics::ShapeFrame * > mCollidingShapeFrames
Set of ShapeFrames that are colliding.
Definition: CollisionResult.hpp:104
const std::unordered_set< const dynamics::ShapeFrame * > & getCollidingShapeFrames() const
Return the set of ShapeFrames that are in collision.
Definition: CollisionResult.cpp:88
const std::unordered_set< const dynamics::BodyNode * > & getCollidingBodyNodes() const
Return the set of BodyNodes that are in collision.
Definition: CollisionResult.cpp:81
bool isCollision() const
Return binary collision result.
Definition: CollisionResult.cpp:106
bool inCollision(const dynamics::BodyNode *bn) const
Returns true if the given BodyNode is in collision.
Definition: CollisionResult.cpp:94
void addContact(const Contact &contact)
Add one contact.
Definition: CollisionResult.cpp:44
std::vector< Contact > mContacts
List of contact information for each contact.
Definition: CollisionResult.hpp:98
Contact & getContact(std::size_t index)
Return the index-th contact.
Definition: CollisionResult.cpp:58
std::unordered_set< const dynamics::BodyNode * > mCollidingBodyNodes
Set of BodyNodes that are colliding.
Definition: CollisionResult.hpp:101
const std::vector< Contact > & getContacts() const
Return contacts.
Definition: CollisionResult.cpp:74
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:78
Definition: ShapeFrame.hpp:164
Definition: BulletCollisionDetector.cpp:63