ReactPhysics3D
v0.10.2
C++ Physics engine library
|
This class can be used to receive notifications about events that occur during the simulation. More...
#include <include/reactphysics3d/engine/EventListener.h>
Public Member Functions | |
EventListener ()=default | |
Constructor. | |
virtual | ~EventListener () override=default |
Destructor. | |
virtual void | onContact (const CollisionCallback::CallbackData &) override |
Called when some contacts occur. | |
virtual void | onTrigger (const OverlapCallback::CallbackData &) |
Called when some trigger events occur. | |
Public Member Functions inherited from reactphysics3d::CollisionCallback | |
virtual | ~CollisionCallback ()=default |
Destructor. | |
This class can be used to receive notifications about events that occur during the simulation.
In order to receive callbacks, you need to create a new class that inherits from this one and you must override the methods that you need. Then, you will need to register your new event listener class to the physics world using the PhysicsWorld::setEventListener() method.
|
inlineoverridevirtual |
Called when some contacts occur.
callbackData | Contains information about all the contacts |
Implements reactphysics3d::CollisionCallback.
Reimplemented in reactphysics3d::DebugRenderer.
|
inlinevirtual |
Called when some trigger events occur.
callbackData | Contains information about all the triggers that are colliding |