C# Class SharpNav.Crowds.LocalBoundary

The LocalBoundary class stores segments and polygon indices for temporary use.
Datei anzeigen Open project: Robmaister/SharpNav Class Usage Examples

Public Methods

Method Description
AddSegment ( float dist, Segment s ) : void

Add a line segment

IsValid ( NavMeshQuery navquery ) : bool

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

LocalBoundary ( )

Initializes a new instance of the LocalBoundary class.

Reset ( ) : void

Reset all the internal data

Update ( NavPolyId reference, Microsoft.Xna.Framework.Vector3 pos, float collisionQueryRange, NavMeshQuery navquery ) : void

Examine polygons in the NavMeshQuery and add polygon edges

Method Details

AddSegment() public method

Add a line segment
public AddSegment ( float dist, Segment s ) : void
dist float The distance
s Segment The line segment
return void

IsValid() public method

Determines whether the polygon reference is a part of the NavMeshQuery.
public IsValid ( NavMeshQuery navquery ) : bool
navquery NavMeshQuery The NavMeshQuery
return bool

LocalBoundary() public method

Initializes a new instance of the LocalBoundary class.
public LocalBoundary ( )

Reset() public method

Reset all the internal data
public Reset ( ) : void
return void

Update() public method

Examine polygons in the NavMeshQuery and add polygon edges
public Update ( NavPolyId reference, Microsoft.Xna.Framework.Vector3 pos, float collisionQueryRange, NavMeshQuery navquery ) : void
reference NavPolyId The starting polygon reference
pos Microsoft.Xna.Framework.Vector3 Current position
collisionQueryRange float Range to query
navquery NavMeshQuery The NavMeshQuery
return void