A* Pathfinding Project  4.2.2
The A* Pathfinding Project for Unity 3D
EndingConditionProximity Class Reference

Ending condition which stops a fixed distance from the target point. More...

Detailed Description

Ending condition which stops a fixed distance from the target point.

Public Member Functions

 EndingConditionProximity (ABPath p, float maxDistance)
 
override bool TargetFound (PathNode node)
 Has the ending condition been fulfilled. More...
 
- Public Member Functions inherited from ABPathEndingCondition
 ABPathEndingCondition (ABPath p)
 
- Public Member Functions inherited from PathEndingCondition
 PathEndingCondition (Path p)
 

Public Attributes

float maxDistance = 10
 Maximum world distance to the target node before terminating the path. More...
 

Additional Inherited Members

- Protected Member Functions inherited from PathEndingCondition
 PathEndingCondition ()
 
- Protected Attributes inherited from ABPathEndingCondition
ABPath abPath
 Path which this ending condition is used on. More...
 
- Protected Attributes inherited from PathEndingCondition
Path path
 Path which this ending condition is used on. More...
 

Constructor & Destructor Documentation

◆ EndingConditionProximity()

EndingConditionProximity ( ABPath  p,
float  maxDistance 
)

Member Function Documentation

◆ TargetFound()

override bool TargetFound ( PathNode  node)
virtual

Has the ending condition been fulfilled.

Parameters
nodeThe current node. This is per default the same as asking if node == p.endNode

Reimplemented from ABPathEndingCondition.

Member Data Documentation

◆ maxDistance

float maxDistance = 10

Maximum world distance to the target node before terminating the path.


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