A* Pathfinding Project
3.6
The A* Pathfinding Project for Unity 3D
|
Demos different path types. More...
Demos different path types.
This script is an example script demoing a number of different path types included in the project. Since only the Pro version has access to many path types, it is only included in the pro version
Public Member Functions | |
void | ClearPrevious () |
Destroys all previous render objects. | |
IEnumerator | Constant () |
void | DemoPath () |
Starts a path specified by PathTypesDemo.activeDemo. | |
void | OnApplicationQuit () |
Clears renders on application quit. | |
void | OnGUI () |
Draw some helpful gui. | |
void | OnPathComplete (Path p) |
Get the path back. | |
Public Attributes | |
int | activeDemo = 0 |
RichAI[] | agents |
float | aimStrength = 0 |
Transform | end |
Material | lineMat |
float | lineWidth |
Vector3 | pathOffset |
int | searchLength = 1000 |
int | spread = 100 |
Material | squareMat |
Transform | start |
Private Member Functions | |
void | Update () |
Private Attributes | |
FloodPath | lastFlood = null |
Path | lastPath = null |
List< GameObject > | lastRender = new List<GameObject>() |
Vector2 | mouseDragStart |
float | mouseDragStartTime |
List< Vector3 > | multipoints = new List<Vector3>() |
void ClearPrevious | ( | ) |
Destroys all previous render objects.
IEnumerator Constant | ( | ) |
void DemoPath | ( | ) |
Starts a path specified by PathTypesDemo.activeDemo.
void OnApplicationQuit | ( | ) |
Clears renders on application quit.
void OnGUI | ( | ) |
Draw some helpful gui.
void OnPathComplete | ( | Path | p | ) |
Get the path back.
|
private |
int activeDemo = 0 |
RichAI [] agents |
float aimStrength = 0 |
Transform end |
|
private |
|
private |
|
private |
Material lineMat |
float lineWidth |
|
private |
|
private |
|
private |
Vector3 pathOffset |
int searchLength = 1000 |
int spread = 100 |
Material squareMat |
Transform start |