A* Pathfinding Project
4.0.3
The A* Pathfinding Project for Unity 3D
|
Example movement script for using RVO. More...
Example movement script for using RVO.
Primarily intended for the example scenes. You can use the AIPath or RichAI movement scripts in your own projects.
Public Member Functions | |
void | Awake () |
void | OnPathComplete (Path _p) |
void | RecalculatePath () |
void | SetColor (Color color) |
Animate the change of color. | |
void | SetTarget (Vector3 target) |
Set the point to move to. | |
void | Update () |
Public Attributes | |
LayerMask | groundMask |
float | maxSpeed = 10 |
float | moveNextDist = 1 |
float | repathRate = 1 |
float | slowdownDistance = 1 |
Private Attributes | |
bool | canSearchAgain = true |
RVOController | controller |
float | nextRepath = 0 |
Path | path = null |
MeshRenderer[] | rends |
Seeker | seeker |
Vector3 | target |
List< Vector3 > | vectorPath |
int | wp |
void Awake | ( | ) |
void OnPathComplete | ( | Path | _p | ) |
void RecalculatePath | ( | ) |
void SetColor | ( | Color | color | ) |
Animate the change of color.
void SetTarget | ( | Vector3 | target | ) |
Set the point to move to.
void Update | ( | ) |
|
private |
|
private |
LayerMask groundMask |
float maxSpeed = 10 |
float moveNextDist = 1 |
|
private |
|
private |
|
private |
float repathRate = 1 |
|
private |
float slowdownDistance = 1 |
|
private |
|
private |
|
private |