From 7c4b724c49775ab40078e8ef1fdb9c87978ace18 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 30 Jun 2024 18:47:53 +0200 Subject: [PATCH] . --- CMakeLists.txt | 2 +- godot-cpp | 2 +- src/RecastNavMesh.hpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7014273..92a189c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,5 +16,5 @@ src/RecastNavMesh.cpp ) target_include_directories(godot-recast-navigation PRIVATE src/) -target_link_libraries(godot-recast-navigation PUBLIC godot::cpp Recast) +target_link_libraries(godot-recast-navigation PUBLIC godot::cpp Recast Detour) target_link_options(godot-recast-navigation PRIVATE -Wl,--no-undefined) diff --git a/godot-cpp b/godot-cpp index 21d526e..a62f633 160000 --- a/godot-cpp +++ b/godot-cpp @@ -1 +1 @@ -Subproject commit 21d526e5e5b1e5d8b6be4db05a704c2c2e7837a9 +Subproject commit a62f633cebee4b36356dc903d00670733cd28fb1 diff --git a/src/RecastNavMesh.hpp b/src/RecastNavMesh.hpp index fef8764..180dd53 100644 --- a/src/RecastNavMesh.hpp +++ b/src/RecastNavMesh.hpp @@ -3,6 +3,7 @@ #include "godot_cpp/classes/node3d.hpp" #include "Recast.h" +#include "DetourNavMesh.h" namespace godot { @@ -29,7 +30,7 @@ private: rcPolyMesh* m_poly_mesh = NULL; rcPolyMeshDetail* m_poly_mesh_detail = NULL; rcContourSet* m_contour_set = NULL; - rcNavMesh* m_nav_mesh = NULL; + dtNavMesh* m_nav_mesh = NULL; protected: static void _bind_methods(); void doLog(const rcLogCategory category, const char* msg, const int len) override {