Struct DistanceCallBackDefault
Defined in File default_broadphase_callbacks.h
Inheritance Relationships
Base Type
public coal::DistanceCallBackBase
(Struct DistanceCallBackBase)
Struct Documentation
-
struct DistanceCallBackDefault : public coal::DistanceCallBackBase
Default distance callback to check collision between collision objects.
Public Functions
-
inline virtual void init()
Initialize the callback. Clears the distance result and sets the done boolean to false.
-
virtual 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.
- Parameters:
o1 – [in] Collision object #1.
o2 – [in] Collision object #2.
dist – [out] Distance between the two collision geometries.
-
inline virtual ~DistanceCallBackDefault()
Public Members
-
DistanceData data
-
inline virtual void init()