Struct CollisionCallBackDefault
Defined in File default_broadphase_callbacks.h
Inheritance Relationships
Base Type
public coal::CollisionCallBackBase
(Struct CollisionCallBackBase)
Struct Documentation
-
struct CollisionCallBackDefault : public coal::CollisionCallBackBase
Default collision callback to check collision between collision objects.
Public Functions
-
inline virtual void init()
Initialize the callback. Clears the collision result and sets the done boolean to false.
-
virtual bool collide(CollisionObject *o1, CollisionObject *o2)
Collision 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.
-
inline virtual ~CollisionCallBackDefault()
Public Members
-
CollisionData data
-
inline virtual void init()