Dungeon Architect  17.0.0
SharpNav.Pathfinding.NavPoint Struct Reference

A point in a navigation mesh. More...

Public Member Functions

 NavPoint (int poly, Vector3 pos)
 Initializes a new instance of the NavPoint struct. More...
 

Public Attributes

int Polygon
 A reference to the polygon this point is on. More...
 
Vector3 Position
 The 3d position of the point. More...
 

Static Public Attributes

static readonly NavPoint Null = new NavPoint(0, Vector3.Zero)
 A null point that isn't associated with any polygon. More...
 

Detailed Description

A point in a navigation mesh.

Definition at line 24 of file NavPoint.cs.

Constructor & Destructor Documentation

◆ NavPoint()

SharpNav.Pathfinding.NavPoint.NavPoint ( int  poly,
Vector3  pos 
)

Initializes a new instance of the NavPoint struct.

Parameters
polyThe polygon that the point is on.
posThe 3d position of the point.

Definition at line 46 of file NavPoint.cs.

Member Data Documentation

◆ Null

readonly NavPoint SharpNav.Pathfinding.NavPoint.Null = new NavPoint(0, Vector3.Zero)
static

A null point that isn't associated with any polygon.

Definition at line 29 of file NavPoint.cs.

◆ Polygon

int SharpNav.Pathfinding.NavPoint.Polygon

A reference to the polygon this point is on.

Definition at line 34 of file NavPoint.cs.

◆ Position

Vector3 SharpNav.Pathfinding.NavPoint.Position

The 3d position of the point.

Definition at line 39 of file NavPoint.cs.


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