OpenMoHAA 0.82.1
Loading...
Searching...
No Matches
navigation_recast_debug.h
Go to the documentation of this file.
1/*
2===========================================================================
3Copyright (C) 2025 the OpenMoHAA team
4
5This file is part of OpenMoHAA source code.
6
7OpenMoHAA source code is free software; you can redistribute it
8and/or modify it under the terms of the GNU General Public License as
9published by the Free Software Foundation; either version 2 of the License,
10or (at your option) any later version.
11
12OpenMoHAA source code is distributed in the hope that it will be
13useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with OpenMoHAA source code; if not, write to the Free Software
19Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20===========================================================================
21*/
22
23#pragma once
24
37
38#include "../qcommon/vector.h"
39
40void G_Navigation_DebugDraw();
41
42class dtCrowd;
43struct navModel_t;
44
45class NavigationMapDebug
46{
47public:
48 NavigationMapDebug();
49 ~NavigationMapDebug();
50
51 void DebugDraw();
52
53private:
54 void TestAgent(const Vector& start, const Vector& end, Vector *paths, int *numPaths, int maxPaths);
55
56 void
57 DrawModel(const Vector& origin, const navModel_t& model, float maxDistSquared, const Vector& offset = vec_zero);
58
59public:
60 dtCrowd *crowd;
61 int agentId;
62
63 Vector ai_startpath;
64 Vector ai_endpath;
65 Vector ai_pathlist[256];
66 int ai_numPaths;
67 int ai_lastpath;
68};
Definition vector.h:61
Navigation model containing faces.
Definition navigation_bsp.h:84