Files
HydraV3/HydraEngine/source/ecs/systems/HydraPhysicsSystem.h
T

30 lines
745 B
C++
Raw Normal View History

2026-08-24 20:59:24 +01:00
#ifndef HYDRAPHYSICSSYSTEM
#define HYDRAPHYSICSSYSTEM
#include "../../engine/HydraObject.h"
#include "../HydraSystem.h"
#include <GLMIncludes.h>
#include <queue>
#include <box3d/box3d.h>
class HydraPhysicsSystem : public HydraSystem
{
public:
void Initialise() override;
void Shutdown() override;
void SetTransform(HydraID entity_id);
void StepPhysics(float delta_t);
protected:
void InitialiseComponent(HydraID entity_id) override;
void DestroyComponent(HydraID entity_id) override;
virtual void UpdateSystem(float delta_t_seconds);
private:
b3WorldId m_world_id;
std::queue<HydraID> m_bodies_to_set;
};
#endif /* HYDRAPHYSICSSYSTEM */