ReactPhysics3D
v0.10.2
C++ Physics engine library
|
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. | |
This class contains data about overlap between bodies.
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.