Default distance callback to check collision between collision objects. More...
#include <default_broadphase_callbacks.h>
Public Member Functions | |
bool | distance (CollisionObject *o1, CollisionObject *o2, CoalScalar &dist) |
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. More... | |
void | init () |
Initialize the callback. Clears the distance result and sets the done boolean to false. More... | |
virtual | ~DistanceCallBackDefault () |
Public Member Functions inherited from coal::DistanceCallBackBase | |
virtual bool | operator() (CollisionObject *o1, CollisionObject *o2, CoalScalar &dist) |
Functor call associated to the distance operation. More... | |
Public Attributes | |
DistanceData | data |
Default distance callback to check collision between collision objects.
Definition at line 210 of file coal/broadphase/default_broadphase_callbacks.h.
|
inlinevirtual |
Definition at line 219 of file coal/broadphase/default_broadphase_callbacks.h.
|
virtual |
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true.
[in] | o1 | Collision object #1. |
[in] | o2 | Collision object #2. |
[out] | dist | Distance between the two collision geometries. |
Implements coal::DistanceCallBackBase.
Definition at line 87 of file default_broadphase_callbacks.cpp.
|
inlinevirtual |
Initialize the callback. Clears the distance result and sets the done boolean to false.
Reimplemented from coal::DistanceCallBackBase.
Definition at line 213 of file coal/broadphase/default_broadphase_callbacks.h.
DistanceData coal::DistanceCallBackDefault::data |
Definition at line 217 of file coal/broadphase/default_broadphase_callbacks.h.