A* Pathfinding Project  4.2.6
The A* Pathfinding Project for Unity 3D
FloodPathConstraint Class Reference

Restrict suitable nodes by if they have been searched by a FloodPath. More...

Detailed Description

Restrict suitable nodes by if they have been searched by a FloodPath.

Suitable nodes are in addition to the basic contraints, only the nodes which return true on a FloodPath.HasPathTo (node) call.

See also
Pathfinding.FloodPath
Pathfinding.FloodPathTracer

A* Pro Feature:
This is an A* Pathfinding Project Pro feature only. This function/class/variable might not exist in the Free version of the A* Pathfinding Project or the functionality might be limited
The Pro version can be bought here

Public Member Functions

 FloodPathConstraint (FloodPath path)
 
override bool Suitable (GraphNode node)
 Returns whether or not the node conforms to this NNConstraint's rules. More...
 
- Public Member Functions inherited from NNConstraint
 NNConstraint ()
 Default constructor. More...
 
virtual bool SuitableGraph (int graphIndex, NavGraph graph)
 Returns whether or not the graph conforms to this NNConstraint's rules. More...
 

Private Attributes

readonly FloodPath path
 

Additional Inherited Members

- Public Attributes inherited from NNConstraint
int area = -1
 Area ID to constrain to. More...
 
bool constrainArea
 Only treat nodes in the area area as suitable. More...
 
bool constrainDistance = true
 Constrain distance to node. More...
 
bool constrainTags = true
 Sets if tags should be constrained. More...
 
bool constrainWalkability = true
 Constrain the search to only walkable or unwalkable nodes depending on walkable. More...
 
bool distanceXZ
 if available, do an XZ check instead of checking on all axes. More...
 
GraphMask graphMask = -1
 Graphs treated as valid to search on. More...
 
int tags = -1
 Nodes which have any of these tags set are suitable. More...
 
bool walkable = true
 Only search for walkable or unwalkable nodes if constrainWalkability is enabled. More...
 
- Properties inherited from NNConstraint
static NNConstraint Default [get]
 The default NNConstraint. More...
 
static NNConstraint None [get]
 Returns a constraint which does not filter the results. More...
 

Constructor & Destructor Documentation

◆ FloodPathConstraint()

Member Function Documentation

◆ Suitable()

override bool Suitable ( GraphNode  node)
virtual

Returns whether or not the node conforms to this NNConstraint's rules.

Reimplemented from NNConstraint.

Member Data Documentation

◆ path

readonly FloodPath path
private

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