gwnavruntime/world/pathfinderconfig.h Source File

pathfinderconfig.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 #pragma once
8 
13 
14 namespace Kaim
15 {
16 
17 
20 {
22 
23 public:
24  PathFinderConfig() { SetDefaults(); }
25 
26  void SetDefaults()
27  {
30  m_propagationBoxExtent = 200.0f;
31  m_abstractGraphTraversalMode = PATHFINDER_TRAVERSE_ABSTRACT_GRAPHS;
35  }
36 
37  bool operator==(const PathFinderConfig& other) const
38  {
43  && m_tryCanGoMode == other.m_tryCanGoMode
46  }
47 
48  bool operator!=(const PathFinderConfig& other) const
49  {
50  return !operator==(other);
51  }
52 
53 public:
61 
69 
74 
77  PathFinderAbstractGraphTraversalMode m_abstractGraphTraversalMode;
78 
82 
86 
91 };
92 
93 }
94 
PathFinderQueryTryCanGoMode m_tryCanGoMode
Indicates if a RayCanGoQuery should be used to try to find a straight path without running any traver...
Definition: pathfinderconfig.h:90
Vertical range (above, below) that represents the altitude tolerance for a position to be inside the ...
Definition: positionspatializationrange.h:17
PositionSpatializationRange m_positionSpatializationRange
The altitude range used to find NavMesh triangles that correspond to the start and destination points...
Definition: pathfinderconfig.h:85
KyFloat32 m_propagationBoxExtent
The PathFinder propagation is limited to a 2d oriented bounding box computed by inflating the segment...
Definition: pathfinderconfig.h:73
PathFinderAbstractGraphTraversalMode m_abstractGraphTraversalMode
Indicates if the PathFinder is allowed to traverse AbstractGraphs or not.
Definition: pathfinderconfig.h:77
PathFinderQueryTryCanGoMode
This enums tells if a RayCanGoQuery should be performed from start position to destination position b...
Definition: pathfinderquerytrycangomode.h:22
KyFloat32 m_toOutsideNavMeshDistance
The maximum distance from the destination along the X axis and along the Y axis that will be searched...
Definition: pathfinderconfig.h:68
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
Class that aggregates most important parameters that allow to configure the PathFinding of a Bot...
Definition: pathfinderconfig.h:19
Try RayCanGoQuery if TraverseLogic does not supports cost multipliers (cf. SimpleTraverseLogic). Default behavior.
Definition: pathfinderquerytrycangomode.h:25
bool m_useDatabaseSpatializationRange
Use Database spatialization range if true.
Definition: pathfinderconfig.h:81
float KyFloat32
float
Definition: types.h:32
KyFloat32 m_fromOutsideNavMeshDistance
The maximum distance from the start along the X axis and along the Y axis that will be searched for N...
Definition: pathfinderconfig.h:60