Pathfinding¶
Static methods¶
Method |
Description |
---|---|
Finds the pathfinding node nearest to the given position |
|
Finds the pathfinding node nearest to the given position |
|
Finds all infantry pathfinding nodes within the given sphere. |
|
Finds all pathfinding nodes of a given type within a sphere |
Details¶
-
class
Pathfinding
¶ -
static PathfindingNode
FindNearestNode
(Vector3 position)¶ Finds the pathfinding node nearest to the given position
- Returns
A pathfinding node or nil if none is found.
-
static PathfindingNode
FindNearestNode
(Vector3 position, PathfindingNodeType type, bool underWater)¶ Finds the pathfinding node nearest to the given position
- Parameters
underWater – Include nodes that are located under water?
- Returns
A pathfinding node or nil if none is found.
-
static array<PathfindingNode>
FindNodes
(Vector3 center, float radius)¶ Finds all infantry pathfinding nodes within the given sphere.
-
static array<PathfindingNode>
FindNodes
(Vector3 center, float radius, PathfindingNodeType type, bool underWater)¶ Finds all pathfinding nodes of a given type within a sphere
- Parameters
underWater – Include nodes that are located under water?
-
static PathfindingNode