GPR5100 - Rollback
Loading...
Searching...
No Matches
Public Member Functions | List of all members
game::PhysicsManager Class Reference

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 BodyGetBody (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 BoxGetBox (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)
 

Detailed Description

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.

Member Function Documentation

◆ RegisterTriggerListener()

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.

Parameters
onTriggerInterfaceis the OnTriggerInterface to be called when a trigger occurs.

The documentation for this class was generated from the following files: