/// Finds all nodes within a specified distance from the start.
/// This class will search outwards from the start point and find all nodes which it costs less than <see cref="EndingConditionDistance.maxGScore"/> to reach, this is usually the same as the distance to them multiplied with 1000.
///
/// The path can be called like:
/// <code>
/// // Here you create a new path and set how far it should search.
/// When the path has been calculated, all nodes it searched will be stored in the variable <see cref="ConstantPath.allNodes"/> (remember that you need to cast it from Path to ConstantPath first to get the variable).
///
/// This list will be sorted by the cost to reach that node (more specifically the G score if you are familiar with the terminology for search algorithms).
/// [Open online documentation to see images]
/// </summary>
publicclassConstantPath:Path{
publicGraphNodestartNode;
publicVector3startPoint;
publicVector3originalStartPoint;
/// <summary>
/// Contains all nodes the path found.
/// This list will be sorted by G score (cost/distance to reach the node).
/// </summary>
publicList<GraphNode>allNodes;
/// <summary>
/// Determines when the path calculation should stop.
/// This is set up automatically in the constructor to an instance of the Pathfinding.EndingConditionDistance class with a maxGScore is specified in the constructor.
///
/// See: Pathfinding.PathEndingCondition for examples
/// </summary>
publicPathEndingConditionendingCondition;
/// <summary>
/// Constructs a ConstantPath starting from the specified point.
///
/// Searching will be stopped when a node has a G score (cost to reach it) greater or equal to maxGScore
/// in order words it will search all nodes with a cost to get there less than maxGScore.
/// </summary>
/// <param name="start">From where the path will be started from (the closest node to that point will be used).</param>
/// <param name="maxGScore">Searching will be stopped when a node has a G score (cost to reach the node) greater than this.</param>
/// <param name="callback">Will be called when the path has been calculated, leave as null if you use a Seeker component.</param>