2026-07-17 15:30:29 +01:00
|
|
|
#ifndef HYDRAECSPOSITIONCOMPONENT
|
|
|
|
|
#define HYDRAECSPOSITIONCOMPONENT
|
|
|
|
|
|
|
|
|
|
|
2026-08-25 22:10:54 +01:00
|
|
|
#include "../../engine/HydraEngine.h"
|
2026-07-17 15:30:29 +01:00
|
|
|
struct HydraPositionComponent
|
|
|
|
|
{
|
|
|
|
|
glm::dvec3 position = {};
|
|
|
|
|
glm::vec3 orientation = {};
|
|
|
|
|
glm::vec3 scale = {1,1,1};
|
|
|
|
|
glm::vec3 velocity = {};
|
|
|
|
|
glm::mat4 transform = glm::mat4(1);
|
|
|
|
|
glm::mat4 parent_transform = glm::mat4(1);
|
|
|
|
|
bool needs_update = true;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif /* HYDRAECSPOSITIONCOMPONENT */
|