Octtree, bounding

This commit is contained in:
Confideo-IOM
2026-08-31 17:32:20 +01:00
parent fe64b25cf3
commit 8dc0595cfc
13 changed files with 73 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef HYDRAOCTTREE
#define HYDRAOCTTREE
#include "../engine/HydraEngine.h"
#include "../engine/HydraObject.h"
#include "HydraOcttreeElement.h"
class HydraOcttree : public HydraObject
{
public:
void Intialise();
void AddEntity(HydraID entity_id);
void RemoveEntity(HydraID entity_id);
void UpdateEntity(HydraID entity_id);
private:
HydraOcttreeElement m_root {};
};
#endif /* HYDRAOCTTREE */
@@ -0,0 +1,12 @@
#ifndef HYDRAOCTTREEELEMENT
#define HYDRAOCTTREEELEMENT
#include "../engine/HydraObject.h"
struct HydraOcttreeElement
{
HydraID element_id = INVALID_HYDRA_ID;
double origin[4] {};
double dimension = 0;
};
#endif /* HYDRAOCTTREEELEMENT */