Untold Engine
Beta v0.0.16
docs
|
The U4DNavMesh class represents the navigation mesh. It contains the navigatio mesh nodes extracted from the navigation mesh loader. More...
Public Member Functions | |
U4DNavMesh () | |
class constructor | |
~U4DNavMesh () | |
class destructor | |
std::vector< U4DNavMeshNode > | getNavMeshNodeContainer () |
gets the vector containing the navigation mesh nodes More... | |
U4DNavMeshNode & | getNodeAt (int uIndex) |
gets the node stored at the specified index in the container More... | |
int | getNodeIndexClosestToPosition (U4DVector3n &uPosition) |
gets the node index closest to the specified position. Used to determine the closest node to a location in the world More... | |
void | clearNavMeshNodeInfo () |
clear all the information contained in the node, such as gCost, hCost, etc. | |
Public Attributes | |
std::vector< U4DNavMeshNode > | navMeshNodeContainer |
vector containing the navigation mesh nodes | |
The U4DNavMesh class represents the navigation mesh. It contains the navigatio mesh nodes extracted from the navigation mesh loader.
std::vector< U4DNavMeshNode > U4DEngine::U4DNavMesh::getNavMeshNodeContainer | ( | ) |
gets the vector containing the navigation mesh nodes
U4DNavMeshNode & U4DEngine::U4DNavMesh::getNodeAt | ( | int | uIndex | ) |
gets the node stored at the specified index in the container
uIndex | vector index |
int U4DEngine::U4DNavMesh::getNodeIndexClosestToPosition | ( | U4DVector3n & | uPosition | ) |
gets the node index closest to the specified position. Used to determine the closest node to a location in the world
uPosition | position in world |