Project Chrono: chrono::ChProximityContainer::ReportProximityCallback Class Reference

Public Member Functions | List of all members
chrono::ChProximityContainer::ReportProximityCallback 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).

It can be used to report or post-process proximity pairs.

`#include <ChProximityContainer.h>`

## Public Member Functions
virtual bool | OnReportProximity (ChCollisionModel *modA, ChCollisionModel *modB)=0
| Callback used to report contact points already added to the container.

## Member Function Documentation

## ◆ OnReportProximity()

virtual bool chrono::ChProximityContainer::ReportProximityCallback::OnReportProximity | ( | ChCollisionModel * | modA,
|  | ChCollisionModel * | modB )
| pure virtual

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

If it returns false, the contact scanning will be stopped.

Parameters

  modA | model A (could be nullptr, if the container does not support it)
  modB | model B (could be nullptr, if the container does not support it)

The documentation for this class was generated from the following file:

- D:/W/B/src/chrono-9.0.1/src/chrono/physics/ChProximityContainer.h