Clutter Engine 0.0.1
|
Interface for receiving collision and trigger events from the physics engine. More...
#include <ICollisionListener.h>
Public Member Functions | |
virtual | ~ICollisionListener ()=default |
Virtual destructor for safe polymorphic destruction. | |
virtual void | OnCollisionEnter (ColliderComponent *collider, const hitResult &result) |
Called when a collision begins with this listener's collider. | |
virtual void | OnCollisionStay (ColliderComponent *collider, const hitResult &result) |
Called while a collision is ongoing with this listener's collider. | |
virtual void | OnCollisionExit (ColliderComponent *collider, const hitResult &result) |
Called when a collision ends with this listener's collider. | |
virtual void | OnTriggerEnter (ColliderComponent *collider, const hitResult &result) |
Called when a trigger event begins with this listener's collider. | |
virtual void | OnTriggerStay (ColliderComponent *collider, const hitResult &result) |
Called while a trigger event is ongoing with this listener's collider. | |
virtual void | OnTriggerExit (ColliderComponent *collider, const hitResult &result) |
Called when a trigger event ends with this listener's collider. | |
Interface for receiving collision and trigger events from the physics engine.
|
inlinevirtual |
Called when a collision begins with this listener's collider.
collider | The collider component involved in the collision. |
result | Detailed information about the collision. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, clt::PlayerController2D, and clt::PlayerController.
|
inlinevirtual |
Called when a collision ends with this listener's collider.
collider | The collider component involved in the collision. |
result | Detailed information about the collision. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, clt::PlayerController2D, and clt::PlayerController.
|
inlinevirtual |
Called while a collision is ongoing with this listener's collider.
collider | The collider component involved in the collision. |
result | Detailed information about the collision. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, clt::PlayerController2D, and clt::PlayerController.
|
inlinevirtual |
Called when a trigger event begins with this listener's collider.
collider | The collider component involved in the trigger event. |
result | Detailed information about the trigger event. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, and clt::PlayerController.
|
inlinevirtual |
Called when a trigger event ends with this listener's collider.
collider | The collider component involved in the trigger event. |
result | Detailed information about the trigger event. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, and clt::PlayerController.
|
inlinevirtual |
Called while a trigger event is ongoing with this listener's collider.
collider | The collider component involved in the trigger event. |
result | Detailed information about the trigger event. |
Reimplemented in clt::CameraController, clt::EditorController, clt::FPSController, and clt::PlayerController.