Dungeon Architect  17.0.0
SharpNav.Crowds.LocalBoundary Class Reference

The LocalBoundary class stores segments and polygon indices for temporary use. More...

Classes

struct  Segment
 A line segment contains two points More...
 

Public Member Functions

 LocalBoundary ()
 Initializes a new instance of the LocalBoundary class. More...
 
void Reset ()
 Reset all the internal data More...
 
void AddSegment (float dist, Segment s)
 Add a line segment More...
 
void Update (int reference, Vector3 pos, float collisionQueryRange, NavMeshQuery navquery)
 Examine polygons in the NavMeshQuery and add polygon edges More...
 
bool IsValid (NavMeshQuery navquery)
 Determines whether the polygon reference is a part of the NavMeshQuery. More...
 

Properties

Vector3 Center [get]
 Gets the center More...
 
Segment[] Segs [get]
 Gets the segments More...
 
int SegCount [get]
 Gets the number of segments More...
 

Detailed Description

The LocalBoundary class stores segments and polygon indices for temporary use.

Definition at line 21 of file LocalBoundary.cs.

Constructor & Destructor Documentation

◆ LocalBoundary()

SharpNav.Crowds.LocalBoundary.LocalBoundary ( )

Initializes a new instance of the LocalBoundary class.

Definition at line 42 of file LocalBoundary.cs.

Member Function Documentation

◆ AddSegment()

void SharpNav.Crowds.LocalBoundary.AddSegment ( float  dist,
Segment  s 
)

Add a line segment

Parameters
distThe distance
sThe line segment

Definition at line 105 of file LocalBoundary.cs.

◆ IsValid()

bool SharpNav.Crowds.LocalBoundary.IsValid ( NavMeshQuery  navquery)

Determines whether the polygon reference is a part of the NavMeshQuery.

Parameters
navqueryThe NavMeshQuery
Returns
True if valid, false if not

Definition at line 198 of file LocalBoundary.cs.

◆ Reset()

void SharpNav.Crowds.LocalBoundary.Reset ( )

Reset all the internal data

Definition at line 93 of file LocalBoundary.cs.

◆ Update()

void SharpNav.Crowds.LocalBoundary.Update ( int  reference,
Vector3  pos,
float  collisionQueryRange,
NavMeshQuery  navquery 
)

Examine polygons in the NavMeshQuery and add polygon edges

Parameters
referenceThe starting polygon reference
posCurrent position
collisionQueryRangeRange to query
navqueryThe NavMeshQuery

Definition at line 155 of file LocalBoundary.cs.

Property Documentation

◆ Center

Vector3 SharpNav.Crowds.LocalBoundary.Center
get

Gets the center

Definition at line 56 of file LocalBoundary.cs.

◆ SegCount

int SharpNav.Crowds.LocalBoundary.SegCount
get

Gets the number of segments

Definition at line 78 of file LocalBoundary.cs.

◆ Segs

Segment [] SharpNav.Crowds.LocalBoundary.Segs
get

Gets the segments

Definition at line 67 of file LocalBoundary.cs.


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