A* Pathfinding Project  3.0.9
The A* Pathfinding Project for Unity
XPath Class Reference

Extended Path. More...

+ Inheritance diagram for XPath:
+ Collaboration diagram for XPath:

List of all members.

Public Member Functions

 XPath (Vector3 start, Vector3 end, OnPathDelegate callbackDelegate)  
override void Initialize ()  Initializes the path.
override float CalculateStep (float remainingFrameTime)  Calculates the path until completed or until the function duration has exceeded remainingFrameTime.

Public Variables

PathEndingCondition endingCondition = new PathEndingCondition ()  

Detailed Description

Extended Path.

This is the same as a standard path but with a lot more customizations possible.

Note:
With more customizations does make it slower to calculate but not by very much.

Member Function Documentation

override float CalculateStep ( float  remainingFrameTime) [virtual]

Calculates the path until completed or until the function duration has exceeded remainingFrameTime.

Usually a check is only done every 500 nodes if the time has exceeded remainingFrameTime.

Reimplemented from Path.

override void Initialize ( ) [virtual]

Initializes the path.

Sets up the open list and adds the first node to it

Todo:
Might interfere with other paths since other paths might be calculated before callback is called

Reimplemented from Path.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Properties