ReactPhysics3D: reactphysics3d::CollisionCallback Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
reactphysics3d::CollisionCallback Class Referenceabstract

This abstract class can be used to register a callback for collision test queries. More...

`#include <include/reactphysics3d/collision/CollisionCallback.h>`

Inheritance diagram for reactphysics3d::CollisionCallback:

## Classes
class | CallbackData
| This class contains data about contacts between bodies. More...
class | ContactPair
| This class represents the contact between two colliders of the physics world. More...
class | ContactPoint
| This class represents a contact point between two colliders of the physics world. More...

## Public Member Functions
virtual | ~CollisionCallback ()=default
| Destructor.
virtual void | onContact (const CallbackData &callbackData)=0
| This method is called when some contacts occur.

## Detailed Description

This abstract class can be used to register a callback for collision test queries.

You should implement your own class inherited from this one and implement the notifyContact() method. This method will called each time a contact point is reported.

## Member Function Documentation

## ◆ onContact()

virtual void reactphysics3d::CollisionCallback::onContact | ( | const CallbackData & | callbackData | ) |
| pure virtual

This method is called when some contacts occur.

Implemented in reactphysics3d::EventListener, and reactphysics3d::DebugRenderer.

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

- include/reactphysics3d/collision/CollisionCallback.h