Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DNavMeshNode Class Reference

The U4DNavMeshNode class represents the navigation mesh node. The nav mesh node contains information required by the PathFinding algorithm. More...

Public Member Functions

 U4DNavMeshNode ()
 class constructor
 
 ~U4DNavMeshNode ()
 class destructor
 
std::vector< int > getMeshNodeNeighborsIndex ()
 gets the node neighbours indices More...
 

Public Attributes

int index
 node index as retrieved from the mesh loader
 
U4DPoint3n position
 node position
 
float weight
 node weights
 
std::vector< int > neighborsIndex
 vector containing the neighbours of the node. The vector contains the indeces of the neighbours
 
float gCost
 distance from starting node
 
float hCost
 distance from end node
 
float fCost
 total cost of gCost and hCost
 
int connection
 connection to parent node. This is used to trace the path after it has been computed
 
bool traversable
 is the node traversable
 
NavMeshNodeCategory category
 used to determine if the node is in the open, closed or unvisited list
 
float distanceToDefinedPosition
 distance to specifed position
 

Detailed Description

The U4DNavMeshNode class represents the navigation mesh node. The nav mesh node contains information required by the PathFinding algorithm.

Member Function Documentation

◆ getMeshNodeNeighborsIndex()

std::vector< int > U4DEngine::U4DNavMeshNode::getMeshNodeNeighborsIndex ( )

gets the node neighbours indices

Returns
neighbours indices