Files
HydraV3/HydraEngine/source/ecs/components/HydraPhysicsComponent.h
T

24 lines
608 B
C
Raw Normal View History

2026-07-17 15:30:29 +01:00
#ifndef HYDRAECSPHYSICSCOMPONENT
#define HYDRAECSPHYSICSCOMPONENT
2026-08-24 20:59:24 +01:00
#include "../../engine/HydraEngine.h"
2026-07-17 15:30:29 +01:00
//#include "../physics/HydraPhysicsDefinition.h"
2026-08-24 20:59:24 +01:00
#include <box3d/box3d.h>
2026-07-17 15:30:29 +01:00
struct HydraPhysicsComponent
{
2026-08-24 20:59:24 +01:00
HYDRA_PHYSICS_TYPE phyics_type = HYDRA_PHYSICS_TYPE::HYDRA_INVALID_PHYSICS_TYPE;
HYDRA_PHYSICS_SHAPE physics_shape = HYDRA_PHYSICS_SHAPE::HYDRA_INVALID_PHYSICS_TYPE;
float mass = 0;
float height = 0;
float width = 0;
float depth = 0;
b3BodyId body_id = {};
bool initialised = false;
bool needs_update = false;
2026-07-17 15:30:29 +01:00
};
#endif /* HYDRAECSPHYSICSCOMPONENT */