OpenMoHAA 0.82.0
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
30
31#include "../qcommon/vector.h"
32
33void G_Navigation_DebugDraw();
34
35class dtCrowd;
36struct navModel_t;
37
38class NavigationMapDebug
39{
40public:
41 NavigationMapDebug();
42 ~NavigationMapDebug();
43
44 void DebugDraw();
45
46private:
47 void TestAgent(const Vector& start, const Vector& end, Vector *paths, int *numPaths, int maxPaths);
48
49 void
50 DrawModel(const Vector& origin, const navModel_t& model, float maxDistSquared, const Vector& offset = vec_zero);
51
52public:
53 dtCrowd *crowd;
54 int agentId;
55
56 Vector ai_startpath;
57 Vector ai_endpath;
58 Vector ai_pathlist[256];
59 int ai_numPaths;
60 int ai_lastpath;
61};
Definition vector.h:61
Navigation model containing faces.
Definition navigation_bsp.h:84