#include <CollisionResult.hpp>
◆ addContact()
void dart::collision::CollisionResult::addContact |
( |
const Contact & |
contact | ) |
|
◆ addObject()
void dart::collision::CollisionResult::addObject |
( |
CollisionObject * |
object | ) |
|
|
protected |
◆ clear()
void dart::collision::CollisionResult::clear |
( |
| ) |
|
◆ getCollidingBodyNodes()
const std::unordered_set< const dynamics::BodyNode * > & dart::collision::CollisionResult::getCollidingBodyNodes |
( |
| ) |
const |
Return the set of BodyNodes that are in collision.
◆ getCollidingShapeFrames()
const std::unordered_set< const dynamics::ShapeFrame * > & dart::collision::CollisionResult::getCollidingShapeFrames |
( |
| ) |
const |
Return the set of ShapeFrames that are in collision.
◆ getContact() [1/2]
Contact & dart::collision::CollisionResult::getContact |
( |
std::size_t |
index | ) |
|
Return the index-th contact.
◆ getContact() [2/2]
const Contact & dart::collision::CollisionResult::getContact |
( |
std::size_t |
index | ) |
const |
Return (const) the index-th contact.
◆ getContacts()
const std::vector< Contact > & dart::collision::CollisionResult::getContacts |
( |
| ) |
const |
◆ getNumContacts()
std::size_t dart::collision::CollisionResult::getNumContacts |
( |
| ) |
const |
Return number of contacts.
◆ inCollision() [1/2]
Returns true if the given BodyNode is in collision.
◆ inCollision() [2/2]
Returns true if the given ShapeFrame is in collision.
◆ isCollision()
bool dart::collision::CollisionResult::isCollision |
( |
| ) |
const |
Return binary collision result.
◆ operator bool()
dart::collision::CollisionResult::operator bool |
( |
| ) |
const |
◆ mCollidingBodyNodes
std::unordered_set<const dynamics::BodyNode*> dart::collision::CollisionResult::mCollidingBodyNodes |
|
protected |
Set of BodyNodes that are colliding.
◆ mCollidingShapeFrames
std::unordered_set<const dynamics::ShapeFrame*> dart::collision::CollisionResult::mCollidingShapeFrames |
|
protected |
Set of ShapeFrames that are colliding.
◆ mContacts
std::vector<Contact> dart::collision::CollisionResult::mContacts |
|
protected |
List of contact information for each contact.