|
GPR5100 - Rollback
|
PhysicsManager is a class that holds both BodyManager and BoxManager and manages the physics fixed update. It allows to register OnTriggerInterface to be called when a trigger occcurs. More...
#include <physics_manager.h>
Public Member Functions | |
| PhysicsManager (core::EntityManager &entityManager) | |
| void | FixedUpdate (sf::Time dt) |
| const Body & | GetBody (core::Entity entity) const |
| void | SetBody (core::Entity entity, const Body &body) |
| void | AddBody (core::Entity entity) |
| void | AddBox (core::Entity entity) |
| void | SetBox (core::Entity entity, const Box &box) |
| const Box & | GetBox (core::Entity entity) const |
| void | RegisterTriggerListener (OnTriggerInterface &onTriggerInterface) |
| RegisterTriggerListener is a method that stores an OnTriggerInterface in the PhysicsManager that will call the OnTrigger method in case of a trigger. More... | |
| void | CopyAllComponents (const PhysicsManager &physicsManager) |
PhysicsManager is a class that holds both BodyManager and BoxManager and manages the physics fixed update. It allows to register OnTriggerInterface to be called when a trigger occcurs.
| void game::PhysicsManager::RegisterTriggerListener | ( | OnTriggerInterface & | onTriggerInterface | ) |
RegisterTriggerListener is a method that stores an OnTriggerInterface in the PhysicsManager that will call the OnTrigger method in case of a trigger.
| onTriggerInterface | is the OnTriggerInterface to be called when a trigger occurs. |