OpenMoHAA 0.82.0
Loading...
Searching...
No Matches
navigation_recast_config.h
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
27
28#pragma once
29
30#include "bg_public.h"
31
33{
34 static const float recastCellSize = 10.25;
35 static const float recastCellHeight = 1.0;
36 static const float agentHeight = DEFAULT_VIEWHEIGHT;
37 static const float agentMaxClimb = STEPSIZE;
38
39 // normal of { 0.714142799, 0, 0.700000048 }, or an angle of -44.4270058
40 static const float agentMaxSlope = 45.5729942f;
41
42 static const float agentRadius = 1.0;
43 static const int regionMinSize = 6;
44 static const int regionMergeSize = 20;
45 static const float edgeMaxLen = 100.0;
46 static const float edgeMaxError = 1.3f;
47 static const int vertsPerPoly = 6;
48 static const float detailSampleDist = 12.0;
49 static const float detailSampleMaxError = 1.3f;
50}
Configuration.
Definition navigation_recast_config.h:33