![]() |
ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class represents the contact between two colliders of the physics world. More...
#include <include/reactphysics3d/collision/OverlapCallback.h>
Public Types | |
| enum class | EventType { OverlapStart , OverlapStay , OverlapExit } |
| Enumeration EventType that describes the type of overlapping event. More... | |
Public Member Functions | |
| OverlapPair (const OverlapPair &contactPair)=default | |
| Copy constructor. | |
| OverlapPair & | operator= (const OverlapPair &contactPair)=delete |
| Assignment operator. | |
| ~OverlapPair ()=default | |
| Destructor. | |
| Collider * | getCollider1 () const |
| Return a pointer to the first collider in contact. | |
| Collider * | getCollider2 () const |
| Return a pointer to the second collider in contact. | |
| Body * | getBody1 () const |
| Return a pointer to the first body in contact. | |
| Body * | getBody2 () const |
| Return a pointer to the second body in contact. | |
| EventType | getEventType () const |
| Return the corresponding type of event for this overlapping pair. | |
This class represents the contact between two colliders of the physics world.
|
strong |
Enumeration EventType that describes the type of overlapping event.