C# Class SharpNav.Crowds.LocalBoundary

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

Méthodes publiques

Méthode 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 méthode

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

IsValid() public méthode

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

LocalBoundary() public méthode

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

Reset() public méthode

Reset all the internal data
public Reset ( ) : void
Résultat void

Update() public méthode

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
Résultat void