Dungeon Architect  17.0.0
SharpNav.NavMeshBuilder Class Reference

The NavMeshBuilder class converst PolyMesh and PolyMeshDetail into a different data structure suited for pathfinding. This class will create tiled data. More...

Public Member Functions

 NavMeshBuilder (PolyMesh polyMesh, PolyMeshDetail polyMeshDetail, OffMeshConnection[] offMeshCons, NavMeshGenerationSettings settings)
 Initializes a new instance of the NavMeshBuilder class. Add all the PolyMesh and PolyMeshDetail attributes to the Navigation Mesh. Then, add Off-Mesh connection support. More...
 

Properties

PathfindingCommon.NavMeshInfo Header [get]
 Gets the file header More...
 
Vector3[] NavVerts [get]
 Gets the PolyMesh vertices More...
 
Poly[] NavPolys [get]
 Gets the PolyMesh polygons More...
 
PolyMeshDetail.MeshData[] NavDMeshes [get]
 Gets the PolyMeshDetail mesh data (the indices of the vertices and triagles) More...
 
Vector3[] NavDVerts [get]
 Gets the PolyMeshDetail vertices More...
 
PolyMeshDetail.TriangleData[] NavDTris [get]
 Gets the PolyMeshDetail triangles More...
 
BVTree NavBvTree [get]
 Gets the bounding volume tree More...
 
OffMeshConnection[] OffMeshCons [get]
 Gets the offmesh connection data More...
 

Detailed Description

The NavMeshBuilder class converst PolyMesh and PolyMeshDetail into a different data structure suited for pathfinding. This class will create tiled data.

Definition at line 25 of file NavMeshBuilder.cs.

Constructor & Destructor Documentation

◆ NavMeshBuilder()

SharpNav.NavMeshBuilder.NavMeshBuilder ( PolyMesh  polyMesh,
PolyMeshDetail  polyMeshDetail,
OffMeshConnection[]  offMeshCons,
NavMeshGenerationSettings  settings 
)

Initializes a new instance of the NavMeshBuilder class. Add all the PolyMesh and PolyMeshDetail attributes to the Navigation Mesh. Then, add Off-Mesh connection support.

Parameters
polyMeshThe PolyMesh
polyMeshDetailThe PolyMeshDetail
offMeshConsOffmesh connection data
settingsThe settings used to build.

Definition at line 45 of file NavMeshBuilder.cs.

Property Documentation

◆ Header

PathfindingCommon.NavMeshInfo SharpNav.NavMeshBuilder.Header
get

Gets the file header

Definition at line 380 of file NavMeshBuilder.cs.

◆ NavBvTree

BVTree SharpNav.NavMeshBuilder.NavBvTree
get

Gets the bounding volume tree

Definition at line 446 of file NavMeshBuilder.cs.

◆ NavDMeshes

PolyMeshDetail.MeshData [] SharpNav.NavMeshBuilder.NavDMeshes
get

Gets the PolyMeshDetail mesh data (the indices of the vertices and triagles)

Definition at line 413 of file NavMeshBuilder.cs.

◆ NavDTris

PolyMeshDetail.TriangleData [] SharpNav.NavMeshBuilder.NavDTris
get

Gets the PolyMeshDetail triangles

Definition at line 435 of file NavMeshBuilder.cs.

◆ NavDVerts

Vector3 [] SharpNav.NavMeshBuilder.NavDVerts
get

Gets the PolyMeshDetail vertices

Definition at line 424 of file NavMeshBuilder.cs.

◆ NavPolys

Poly [] SharpNav.NavMeshBuilder.NavPolys
get

Gets the PolyMesh polygons

Definition at line 402 of file NavMeshBuilder.cs.

◆ NavVerts

Vector3 [] SharpNav.NavMeshBuilder.NavVerts
get

Gets the PolyMesh vertices

Definition at line 391 of file NavMeshBuilder.cs.

◆ OffMeshCons

OffMeshConnection [] SharpNav.NavMeshBuilder.OffMeshCons
get

Gets the offmesh connection data

Definition at line 457 of file NavMeshBuilder.cs.


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