Added path showing

This commit is contained in:
Vladislav Khorev committed 2026-04-16 11:39:14 +03:00
1 parent 4eaefd25d4
commit dc76986cd3
7 files changed
+75 -9

No files matched your search

+9
View File
@@ -88,6 +88,10 @@ namespace ZL {
ScriptEngine scriptEngine;
PathFinder navigation;
#ifdef SHOW_PATH
std::vector<VertexRenderStruct> debugNavMeshes;
#endif
private:
bool rightMouseDown = false;
int lastMouseX = 0;
@@ -108,6 +112,11 @@ namespace ZL {
InteractiveObject* raycastInteractiveObjects(const Eigen::Vector3f& rayOrigin, const Eigen::Vector3f& rayDir);
Character* raycastNpcs(const Eigen::Vector3f& rayOrigin, const Eigen::Vector3f& rayDir, float maxDistance = 100.0f);
#ifdef SHOW_PATH
void buildDebugNavMeshes();
void drawDebugNavigation();
#endif
#ifdef EMSCRIPTEN
static Game* s_instance;
static void onResourcesZipLoaded(const char* filename);