ReactPhysics3D: reactphysics3d::OverlapCallback::CallbackData Class Reference

| ReactPhysics3D v0.10.2 C++ Physics engine library

Loading...
Searching...
No Matches
Public Member Functions | List of all members
reactphysics3d::OverlapCallback::CallbackData Class Reference

This class contains data about overlap between bodies. More...

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

## Public Member Functions
uint32 | getNbOverlappingPairs () const
| Return the number of overlapping pairs of bodies.
OverlapPair | getOverlappingPair (uint32 index) const
| Return a given overlapping pair of bodies.

## Detailed Description

This class contains data about overlap between bodies.

## Member Function Documentation

## ◆ getOverlappingPair()

RP3D_FORCE_INLINE OverlapCallback::OverlapPair reactphysics3d::OverlapCallback::CallbackData::getOverlappingPair | ( | uint32 | index | ) | const

Return a given overlapping pair of bodies.

Note that the returned OverlapPair object is only valid during the call of the CollisionCallback::onOverlap() method.

Therefore, you need to get contact data from it and make a copy. Do not make a copy of the OverlapPair object itself because it won't be valid after the CollisionCallback::onOverlap() call.

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

- include/reactphysics3d/collision/OverlapCallback.h
- src/collision/OverlapCallback.cpp