chrono::ChAddContactCallback 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 friction value (as default it is the average of the friction of the two bodies). The user should implement an inherited class and implement a custom ContactCallback() function.

#include <ChContactContainerBase.h>

Inherited by chrono::SystemAddCollisionPointCallback.

Public Member Functions

virtual void ContactCallback (const collision::ChCollisionInfo &mcontactinfo, ChMaterialCouple &material)=0
 Callback used to report contact points being added to the container. More...
 

Member Function Documentation

virtual void chrono::ChAddContactCallback::ContactCallback ( const collision::ChCollisionInfo mcontactinfo,
ChMaterialCouple material 
)
pure virtual

Callback used to report contact points being added to the container.

This must be implemented by a child class of ChAddContactCallback

Parameters
mcontactinfoget info about contact (cannot change it)
materialyou can modify this!