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

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< U4DNavMeshNodegetNavMeshNodeContainer ()
 gets the vector containing the navigation mesh nodes More...
 
U4DNavMeshNodegetNodeAt (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< U4DNavMeshNodenavMeshNodeContainer
 vector containing the navigation mesh nodes
 

Detailed Description

The U4DNavMesh class represents the navigation mesh. It contains the navigatio mesh nodes extracted from the navigation mesh loader.

Member Function Documentation

◆ getNavMeshNodeContainer()

std::vector< U4DNavMeshNode > U4DEngine::U4DNavMesh::getNavMeshNodeContainer ( )

gets the vector containing the navigation mesh nodes

Returns
navigation mesh node vector

◆ getNodeAt()

U4DNavMeshNode & U4DEngine::U4DNavMesh::getNodeAt ( int  uIndex)

gets the node stored at the specified index in the container

Parameters
uIndexvector index
Returns
node stored at specified index location

◆ getNodeIndexClosestToPosition()

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

Parameters
uPositionposition in world
Returns
closest node index to the given position