chrono::ChContactContainer::AddContactCallback Class Referenceabstract
Description
Class to be used as a callback interface for some user defined action to be taken each time a contact is added to the container.
It can be used to modify the composite material properties for the contact pair.
#include <ChContactContainer.h>
Inherited by chrono::robosimian::ContactMaterial, and chrono::vehicle::RTContactCallback.
Public Member Functions | |
virtual void | OnAddContact (const ChCollisionInfo &contactinfo, ChContactMaterialComposite *const material)=0 |
Callback used to process contact points being added to the container. More... | |
Member Function Documentation
◆ OnAddContact()
|
pure virtual |
Callback used to process contact points being added to the container.
A derived user-provided callback class must implement this. The provided composite material should be downcast to the appropriate type.
- Parameters
-
contactinfo information about the collision pair material composite material can be modified
The documentation for this class was generated from the following file:
- /builds/uwsbel/chrono/src/chrono/physics/ChContactContainer.h