|
NoJobEngine 2.0.7
|
#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 |
| NavPolygonID NoJob::NavMesh::AddPolygon | ( | const std::vector< NavVertexID > & | vertices, |
| float | cost = 1.0f ) |
Definition at line 23 of file NavMesh.cpp.
References NoJob::NavPolygon::Center, NoJob::NavPolygon::Cost, NoJob::NavPolygon::Edges, NoJob::NavEdge::EndVertex, NoJob::InvalidNavPolygonID, NoJob::NavEdge::StartVertex, and NoJob::NavPolygon::Vertices.
Referenced by NoJob::NavMeshGenerator::Generate().
| NavVertexID NoJob::NavMesh::AddVertex | ( | const glm::vec3 & | position | ) |
Definition at line 8 of file NavMesh.cpp.
References NoJob::InvalidNavVertexID.
Referenced by NoJob::NavMeshGenerator::Generate().
| void NoJob::NavMesh::BuildAdjacency | ( | ) |
Definition at line 98 of file NavMesh.cpp.
References NoJob::InvalidNavPolygonID.
Referenced by NoJob::NavMeshGenerator::Generate(), and ReplacePolygons().
| const NavPolygon * NoJob::NavMesh::GetPolygon | ( | NavPolygonID | id | ) | const |
Definition at line 137 of file NavMesh.cpp.
Referenced by NoJob::NavMeshDebugRenderer::Build(), and NoJob::NavMeshPathfinder::FindPath().
|
inline |
Definition at line 69 of file NavMesh.h.
Referenced by NoJob::NavigationSystem::Bake(), NoJob::NavMeshDebugRenderer::Build(), and NoJob::NavMeshPathfinder::FindPath().
| const NavVertex * NoJob::NavMesh::GetVertex | ( | NavVertexID | id | ) | const |
Definition at line 127 of file NavMesh.cpp.
Referenced by NoJob::NavMeshDebugRenderer::Build(), and NoJob::NavMeshGenerator::Generate().
|
inline |
Definition at line 68 of file NavMesh.h.
Referenced by NoJob::NavMeshGenerator::Generate().
| void NoJob::NavMesh::ReplacePolygons | ( | std::vector< NavPolygon > | polygons | ) |
Definition at line 146 of file NavMesh.cpp.
References BuildAdjacency().