chrono::ChReportProximityCallback Class Referenceabstract

Description

Class to be used as a callback interface for some user defined action to be taken for each proximity pair (already added to the container).

The user should implement an inherited class and implement a custom ReportProximityCallback() function.

#include <ChProximityContainerBase.h>

Public Member Functions

virtual bool ReportProximityCallback (collision::ChCollisionModel *modA, collision::ChCollisionModel *modB)=0
 Callback, used to report contact points already added to the container. More...
 

Member Function Documentation

virtual bool chrono::ChReportProximityCallback::ReportProximityCallback ( collision::ChCollisionModel modA,
collision::ChCollisionModel modB 
)
pure virtual

Callback, used to report contact points already added to the container.

This must be implemented by a child class of ChReportContactCallback. If returns false, the contact scanning will be stopped.

Parameters
modAget model A (note: some containers may not support it and could be zero!)
modBget model B (note: some containers may not support it and could be zero!)