A* Pathfinding Project  4.0.6
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 
- 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.
 

Constructor & Destructor Documentation

EndingConditionProximity ( ABPath  p,
float  maxDistance 
)

Member Function Documentation

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

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: