Struct DistanceCallBackBase
Defined in File broadphase_callbacks.h
Inheritance Relationships
Derived Type
public coal::DistanceCallBackDefault
(Struct DistanceCallBackDefault)
Struct Documentation
-
struct DistanceCallBackBase
Base callback class for distance queries. This class can be supersed by child classes to provide desired behaviors according to the application (e.g, only listing the potential CollisionObjects in collision).
Subclassed by coal::DistanceCallBackDefault
Public Functions
-
inline virtual void init()
Initialization of the callback before running the collision broadphase manager.
-
virtual bool distance(CollisionObject *o1, CollisionObject *o2, CoalScalar &dist) = 0
Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true.
- Parameters:
o1 – [in] Collision object #1.
o2 – [in] Collision object #2.
dist – [out] Distance between the two collision geometries.
-
inline virtual bool operator()(CollisionObject *o1, CollisionObject *o2, CoalScalar &dist)
Functor call associated to the distance operation.
-
inline virtual void init()