39 #ifndef COAL_BROADPHASE_DEFAULT_BROADPHASE_CALLBACKS_H
40 #define COAL_BROADPHASE_DEFAULT_BROADPHASE_CALLBACKS_H
192 void* data,
Scalar& dist);
the object for collision or distance computation, contains the geometry and the transform information
Definition: collision_object.h:214
#define COAL_DLLAPI
Definition: config.hh:88
Main namespace.
Definition: broadphase_bruteforce.h:44
double Scalar
Definition: data_types.h:68
bool defaultDistanceFunction(CollisionObject *o1, CollisionObject *o2, void *data, Scalar &dist)
Collision data for use with the DefaultContinuousCollisionFunction. It stores the collision request a...
bool defaultCollisionFunction(CollisionObject *o1, CollisionObject *o2, void *data)
Provides a simple callback for the collision query in the BroadPhaseCollisionManager....
Base callback class for collision queries. This class can be supersed by child classes to provide des...
Definition: broadphase_callbacks.h:49
Collision callback to collect collision pairs potentially in contacts.
Definition: default_broadphase_callbacks.h:223
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
std::pair< CollisionObject *, CollisionObject * > CollisionPair
Definition: default_broadphase_callbacks.h:224
std::vector< CollisionPair > collision_pairs
Definition: default_broadphase_callbacks.h:246
void init()
Reset the callback.
bool exist(CollisionObject *o1, CollisionObject *o2) const
Check whether a collision pair exists.
size_t max_size
Definition: default_broadphase_callbacks.h:250
size_t numCollisionPairs() const
Returns the number of registered collision pairs.
bool exist(const CollisionPair &pair) const
Check whether a collision pair exists.
const std::vector< CollisionPair > & getCollisionPairs() const
Returns a const reference to the active collision_pairs to check.
CollisionCallBackCollect(const size_t max_size)
Default constructor.
virtual ~CollisionCallBackCollect()
Definition: default_broadphase_callbacks.h:246
Default collision callback to check collision between collision objects.
Definition: default_broadphase_callbacks.h:196
bool collide(CollisionObject *o1, CollisionObject *o2)
Collision evaluation between two objects in collision. This callback will cause the broadphase evalua...
virtual ~CollisionCallBackDefault()
Definition: default_broadphase_callbacks.h:205
CollisionData data
Definition: default_broadphase_callbacks.h:203
void init()
Initialize the callback. Clears the collision result and sets the done boolean to false.
Definition: default_broadphase_callbacks.h:199
Collision data stores the collision request and the result given by collision algorithm.
Definition: default_broadphase_callbacks.h:55
CollisionResult result
Collision result.
Definition: default_broadphase_callbacks.h:62
CollisionData()
Definition: default_broadphase_callbacks.h:56
bool done
Whether the collision iteration can stop.
Definition: default_broadphase_callbacks.h:65
CollisionRequest request
Collision request.
Definition: default_broadphase_callbacks.h:59
void clear()
Clears the CollisionData.
Definition: default_broadphase_callbacks.h:68
request to the collision algorithm
Definition: collision_data.h:311
collision result
Definition: collision_data.h:390
void clear()
clear the results obtained
Definition: collision_data.h:482
Base callback class for distance queries. This class can be supersed by child classes to provide desi...
Definition: broadphase_callbacks.h:72
Default distance callback to check collision between collision objects.
Definition: default_broadphase_callbacks.h:210
void init()
Initialize the callback. Clears the distance result and sets the done boolean to false.
Definition: default_broadphase_callbacks.h:213
bool distance(CollisionObject *o1, CollisionObject *o2, Scalar &dist)
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluat...
DistanceData data
Definition: default_broadphase_callbacks.h:217
virtual ~DistanceCallBackDefault()
Definition: default_broadphase_callbacks.h:219
Distance data stores the distance request and the result given by distance algorithm.
Definition: default_broadphase_callbacks.h:76
void clear()
Clears the DistanceData.
Definition: default_broadphase_callbacks.h:89
DistanceResult result
Distance result.
Definition: default_broadphase_callbacks.h:83
bool done
Whether the distance iteration can stop.
Definition: default_broadphase_callbacks.h:86
DistanceData()
Definition: default_broadphase_callbacks.h:77
DistanceRequest request
Distance request.
Definition: default_broadphase_callbacks.h:80
request to the distance computation
Definition: collision_data.h:984
distance result
Definition: collision_data.h:1050
void clear()
clear the result
Definition: collision_data.h:1136