|
MULTIBODY SIMULATION SOFTWARE - API documentation |
#include <CHcontactContainerBase.h>
Public Member Functions | |
| virtual bool | ReportContactCallback (const ChVector<> &pA, const ChVector<> &pB, const ChMatrix33<> &plane_coord, const double &distance, const float &mfriction, const ChVector<> &react_forces, const ChVector<> &react_torques, collision::ChCollisionModel *modA, collision::ChCollisionModel *modB)=0 |
| virtual bool chrono::ChReportContactCallback::ReportContactCallback | ( | const ChVector<> & | pA, | |
| const ChVector<> & | pB, | |||
| const ChMatrix33<> & | plane_coord, | |||
| const double & | distance, | |||
| const float & | mfriction, | |||
| const ChVector<> & | react_forces, | |||
| const ChVector<> & | react_torques, | |||
| 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.
| pA | get contact pA |
| pB | get contact pB |
| plane_coord | get contact plane coordsystem (A column 'X' is contact normal) |
| distance | get contact distance |
| mfriction | get friction info |
| react_forces | get react.forces (if already computed). In coordsystem 'plane_coord' |
| react_torques | get react.torques, if rolling friction (if already computed). |
| modA | get model A (note: some containers may not support it and could be zero!) |
| modB | get model B (note: some containers may not support it and could be zero!) |
CHRONO::ENGINE