A* Pathfinding Project
3.8.12
The A* Pathfinding Project for Unity 3D
|
Ending condition which stops a fixed distance from the target point. More...
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. | |
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. | |
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. | |
EndingConditionProximity | ( | ABPath | p, |
float | maxDistance | ||
) |
|
virtual |
Has the ending condition been fulfilled.
node | The current node. This is per default the same as asking if node == p.endNode |
Reimplemented from ABPathEndingCondition.
float maxDistance = 10 |
Maximum world distance to the target node before terminating the path.