Dungeon Architect  17.0.0
SharpNav.Pathfinding.MeshTile Class Reference

The MeshTile contains the map data for pathfinding More...

Public Member Functions

void ClosestPointOnPoly (Poly poly, Vector3 pos, ref Vector3 closest)
 Given a point, find the closest point on that poly. More...
 
void ClosestPointOnPoly (int indexPoly, Vector3 pos, ref Vector3 closest)
 Given a point, find the closest point on that poly. More...
 
void ClosestPointOnPolyBoundary (Poly poly, Vector3 pos, out Vector3 closest)
 Given a point, find the closest point on that poly. More...
 
bool ClosestHeight (int indexPoly, Vector3 pos, out float h)
 Find the distance from a point to a triangle. More...
 
void ClosestPointOnPolyOffMeshConnection (Poly poly, Vector3 pos, out Vector3 closest)
 Find the closest point on an offmesh connection, which is in between the two points. More...
 

Properties

int Salt [get, set]
 Gets or sets the counter describing modifications to the tile More...
 
int LinksFreeList [get, set]
 Gets or sets the index to the next free link More...
 
PathfindingCommon.NavMeshInfo Header [get, set]
 Gets or sets the header More...
 
Poly[] Polys [get, set]
 Gets or sets the PolyMesh polygons More...
 
Vector3[] Verts [get, set]
 Gets or sets the PolyMesh vertices More...
 
Link[] Links [get, set]
 Gets or sets the links between polygons More...
 
PolyMeshDetail.MeshData[] DetailMeshes [get, set]
 Gets or sets the PolyMeshDetail data More...
 
Vector3[] DetailVerts [get, set]
 Gets or sets the PolyMeshDetail vertices More...
 
PolyMeshDetail.TriangleData[] DetailTris [get, set]
 Gets or sets the PolyMeshDetail triangles More...
 
OffMeshConnection[] OffMeshConnections [get, set]
 Gets or sets the OffmeshConnections More...
 
BVTree BVTree [get, set]
 Gets or sets the bounding volume tree More...
 
NavMeshBuilder Data [get, set]
 Gets or sets the NavMeshBuilder data More...
 
MeshTile Next [get, set]
 Gets or sets the next MeshTile More...
 

Detailed Description

The MeshTile contains the map data for pathfinding

Definition at line 20 of file MeshTile.cs.

Member Function Documentation

◆ ClosestHeight()

bool SharpNav.Pathfinding.MeshTile.ClosestHeight ( int  indexPoly,
Vector3  pos,
out float  h 
)

Find the distance from a point to a triangle.

Parameters
indexPolyCurrent polygon's index
posCurrent position
hResulting height
Returns
True, if a height is found. False, if otherwise.

Definition at line 182 of file MeshTile.cs.

◆ ClosestPointOnPoly() [1/2]

void SharpNav.Pathfinding.MeshTile.ClosestPointOnPoly ( int  indexPoly,
Vector3  pos,
ref Vector3  closest 
)

Given a point, find the closest point on that poly.

Parameters
indexPolyThe current poly's index
posThe current position
closestReference to the closest point

Definition at line 114 of file MeshTile.cs.

◆ ClosestPointOnPoly() [2/2]

void SharpNav.Pathfinding.MeshTile.ClosestPointOnPoly ( Poly  poly,
Vector3  pos,
ref Vector3  closest 
)

Given a point, find the closest point on that poly.

Parameters
polyThe current polygon.
posThe current position
closestReference to the closest point

Definition at line 93 of file MeshTile.cs.

◆ ClosestPointOnPolyBoundary()

void SharpNav.Pathfinding.MeshTile.ClosestPointOnPolyBoundary ( Poly  poly,
Vector3  pos,
out Vector3  closest 
)

Given a point, find the closest point on that poly.

Parameters
polyThe current polygon.
posThe current position
closestReference to the closest point

Definition at line 138 of file MeshTile.cs.

◆ ClosestPointOnPolyOffMeshConnection()

void SharpNav.Pathfinding.MeshTile.ClosestPointOnPolyOffMeshConnection ( Poly  poly,
Vector3  pos,
out Vector3  closest 
)

Find the closest point on an offmesh connection, which is in between the two points.

Parameters
polyCurrent polygon
posCurrent position
closestResulting point that is closest.

Definition at line 215 of file MeshTile.cs.

Property Documentation

◆ BVTree

BVTree SharpNav.Pathfinding.MeshTile.BVTree
getset

Gets or sets the bounding volume tree

Definition at line 75 of file MeshTile.cs.

◆ Data

NavMeshBuilder SharpNav.Pathfinding.MeshTile.Data
getset

Gets or sets the NavMeshBuilder data

Definition at line 80 of file MeshTile.cs.

◆ DetailMeshes

PolyMeshDetail.MeshData [] SharpNav.Pathfinding.MeshTile.DetailMeshes
getset

Gets or sets the PolyMeshDetail data

Definition at line 55 of file MeshTile.cs.

◆ DetailTris

PolyMeshDetail.TriangleData [] SharpNav.Pathfinding.MeshTile.DetailTris
getset

Gets or sets the PolyMeshDetail triangles

Definition at line 65 of file MeshTile.cs.

◆ DetailVerts

Vector3 [] SharpNav.Pathfinding.MeshTile.DetailVerts
getset

Gets or sets the PolyMeshDetail vertices

Definition at line 60 of file MeshTile.cs.

◆ Header

PathfindingCommon.NavMeshInfo SharpNav.Pathfinding.MeshTile.Header
getset

Gets or sets the header

Definition at line 35 of file MeshTile.cs.

◆ Links

Link [] SharpNav.Pathfinding.MeshTile.Links
getset

Gets or sets the links between polygons

Definition at line 50 of file MeshTile.cs.

◆ LinksFreeList

int SharpNav.Pathfinding.MeshTile.LinksFreeList
getset

Gets or sets the index to the next free link

Definition at line 30 of file MeshTile.cs.

◆ Next

MeshTile SharpNav.Pathfinding.MeshTile.Next
getset

Gets or sets the next MeshTile

Definition at line 85 of file MeshTile.cs.

◆ OffMeshConnections

OffMeshConnection [] SharpNav.Pathfinding.MeshTile.OffMeshConnections
getset

Gets or sets the OffmeshConnections

Definition at line 70 of file MeshTile.cs.

◆ Polys

Poly [] SharpNav.Pathfinding.MeshTile.Polys
getset

Gets or sets the PolyMesh polygons

Definition at line 40 of file MeshTile.cs.

◆ Salt

int SharpNav.Pathfinding.MeshTile.Salt
getset

Gets or sets the counter describing modifications to the tile

Definition at line 25 of file MeshTile.cs.

◆ Verts

Vector3 [] SharpNav.Pathfinding.MeshTile.Verts
getset

Gets or sets the PolyMesh vertices

Definition at line 45 of file MeshTile.cs.


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