A* Pathfinding Project
4.2.4
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. 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... | |
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.