NoJobEngine 2.0.7
Loading...
Searching...
No Matches
NoJob::NavMesh Class Reference

#include <NavMesh.h>

Public Member Functions

NavVertexID AddVertex (const glm::vec3 &position)
NavPolygonID AddPolygon (const std::vector< NavVertexID > &vertices, float cost=1.0f)
void BuildAdjacency ()
void ReplacePolygons (std::vector< NavPolygon > polygons)
const NavVertex * GetVertex (NavVertexID id) const
const NavPolygon * GetPolygon (NavPolygonID id) const
size_t GetVertexCount () const
size_t GetPolygonCount () const

Detailed Description

Definition at line 52 of file NavMesh.h.

Member Function Documentation

◆ AddPolygon()

◆ AddVertex()

NavVertexID NoJob::NavMesh::AddVertex ( const glm::vec3 & position)

Definition at line 8 of file NavMesh.cpp.

References NoJob::InvalidNavVertexID.

Referenced by NoJob::NavMeshGenerator::Generate().

◆ BuildAdjacency()

void NoJob::NavMesh::BuildAdjacency ( )

Definition at line 98 of file NavMesh.cpp.

References NoJob::InvalidNavPolygonID.

Referenced by NoJob::NavMeshGenerator::Generate(), and ReplacePolygons().

◆ GetPolygon()

const NavPolygon * NoJob::NavMesh::GetPolygon ( NavPolygonID id) const

◆ GetPolygonCount()

size_t NoJob::NavMesh::GetPolygonCount ( ) const
inline

◆ GetVertex()

const NavVertex * NoJob::NavMesh::GetVertex ( NavVertexID id) const

◆ GetVertexCount()

size_t NoJob::NavMesh::GetVertexCount ( ) const
inline

Definition at line 68 of file NavMesh.h.

Referenced by NoJob::NavMeshGenerator::Generate().

◆ ReplacePolygons()

void NoJob::NavMesh::ReplacePolygons ( std::vector< NavPolygon > polygons)

Definition at line 146 of file NavMesh.cpp.

References BuildAdjacency().


The documentation for this class was generated from the following files: