feat: add line renderer / visualisations for box collidors as a test

This commit is contained in:
2026-08-14 03:16:04 +02:00
parent 7f65a151b5
commit 287e5c6885
12 changed files with 596 additions and 69 deletions
+8
View File
@@ -21,7 +21,14 @@ public:
void customFixedUpdate(float dt) override;
void onWindowResize(int newWidth, int newHeight) override;
private:
void drawDebugMenuBar();
void saveCurrentScene();
void loadScene();
void createEmptyScene();
void submitBoxColliderDebugLines();
Camera camera{glm::vec3(0.f, 0.f, -5.f), glm::vec3(0, 1, 0)};
MeshID sphereMesh;
@@ -34,6 +41,7 @@ private:
char scenePath[512]{"scenes/debug_scene.json"};
char newSceneName[128]{"EmptyScene"};
std::string sceneStatus;
bool renderBoxColliders{false};
};
#endif //LIGHTKEEPER_H