Working on navigation system
This commit is contained in:
1 parent
d4bc73f732
commit
a479fa4ac1
8 files changed
+481
-30
No files matched your search
+18
-5
@@ -73,11 +73,24 @@ namespace ZL
|
||||
TeleportZone* targetTeleportZone = nullptr;
|
||||
std::function<void(const std::string&, const Eigen::Vector3f&, float)> onTeleport;
|
||||
|
||||
#ifdef SHOW_PATH
|
||||
std::vector<VertexRenderStruct> debugNavMeshes;
|
||||
void buildDebugNavMeshes();
|
||||
void drawDebugNavigation();
|
||||
#endif
|
||||
// Navigation editor — toggle with 'N', save with 'B', right-click to finalize polygon
|
||||
bool navigationEditorMode = false;
|
||||
|
||||
std::vector<Eigen::Vector3f> navigationEditorPoints;
|
||||
VertexRenderStruct navigationEditorPointsMesh;
|
||||
std::vector<VertexRenderStruct> navigationEditorNavMeshes;
|
||||
std::string navigationEditorConfigPath;
|
||||
int navigationEditorObstacleCounter = 0;
|
||||
|
||||
void navigationEditorBuildNavMeshes();
|
||||
void navigationEditorDrawNavigation();
|
||||
void navigationEditorRebuildPointsMesh();
|
||||
void navigationEditorDrawPoints();
|
||||
void navigationEditorHandleLeftClick(const Eigen::Vector3f& hit, bool ctrlHeld);
|
||||
void navigationEditorHandleRightClick();
|
||||
void navigationEditorSave();
|
||||
void navigationEditorReload();
|
||||
|
||||
// Set by Game when the user's primary pointer (left mouse / single touch)
|
||||
// has crossed the tap-vs-drag threshold and is now rotating the camera.
|
||||
bool cameraDragging = false;
|
||||
|
||||
Reference in new issue
Block a user