33 #ifndef DART_COLLISION_COLLISIONRESULT_HPP_
34 #define DART_COLLISION_COLLISIONRESULT_HPP_
36 #include <unordered_set>
74 const std::unordered_set<const dynamics::ShapeFrame*>&
87 operator bool()
const;
std::size_t index
Definition: SkelParser.cpp:1672
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:102
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:96
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:99
const std::vector< Contact > & getContacts() const
Return contacts.
Definition: CollisionResult.cpp:74
BodyNode class represents a single node of the skeleton.
Definition: BodyNode.hpp:79
Definition: ShapeFrame.hpp:192
Definition: BulletCollisionDetector.cpp:65