Callback structure for both discrete and continuous broadphase collision pair. More...
#include <bullet_utils.h>
Public Member Functions | |
btScalar | addSingleResult (btManifoldPoint &cp, const btCollisionObjectWrapper *colObj0Wrap, int, int index0, const btCollisionObjectWrapper *colObj1Wrap, int, int index1) |
This callback is used after btManifoldResult processed a collision result. More... | |
BroadphaseContactResultCallback (ContactTestData &collisions, double contact_distance, const collision_detection::AllowedCollisionMatrix *acm, bool self, bool cast=false) | |
bool | needsCollision (const CollisionObjectWrapper *cow0, const CollisionObjectWrapper *cow1) const |
This callback is used for each overlapping pair in a pair cache of the broadphase interface to check if a collision check should done for the pair. More... | |
~BroadphaseContactResultCallback ()=default | |
Public Attributes | |
const collision_detection::AllowedCollisionMatrix * | acm_ { nullptr } |
bool | cast_ { false } |
Indicates if the callback is used for casted collisions. More... | |
ContactTestData & | collisions_ |
double | contact_distance_ |
bool | self_ |
Indicates if the callback is used for only self-collision checking. More... | |
Callback structure for both discrete and continuous broadphase collision pair.
/e needsCollision is the callback executed before a narrowphase check is executed. /e addSingleResult is the callback executed after the narrowphase check delivers a result.
Definition at line 597 of file bullet_utils.h.
|
inline |
Definition at line 609 of file bullet_utils.h.
|
default |
|
inline |
This callback is used after btManifoldResult processed a collision result.
Definition at line 634 of file bullet_utils.h.
|
inline |
This callback is used for each overlapping pair in a pair cache of the broadphase interface to check if a collision check should done for the pair.
Definition at line 620 of file bullet_utils.h.
const collision_detection::AllowedCollisionMatrix* collision_detection_bullet::BroadphaseContactResultCallback::acm_ { nullptr } |
Definition at line 601 of file bullet_utils.h.
bool collision_detection_bullet::BroadphaseContactResultCallback::cast_ { false } |
Indicates if the callback is used for casted collisions.
Definition at line 607 of file bullet_utils.h.
ContactTestData& collision_detection_bullet::BroadphaseContactResultCallback::collisions_ |
Definition at line 599 of file bullet_utils.h.
double collision_detection_bullet::BroadphaseContactResultCallback::contact_distance_ |
Definition at line 600 of file bullet_utils.h.
bool collision_detection_bullet::BroadphaseContactResultCallback::self_ |
Indicates if the callback is used for only self-collision checking.
Definition at line 604 of file bullet_utils.h.