A* Pathfinding Project  4.0.5
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
RVOExampleAgent Class Reference

Example movement script for using RVO. More...

Detailed Description

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.

See Also
AIPath
Pathfinding.RichAI
Pathfinding.RVO.RVOController

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
 

Member Function Documentation

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 ( )

Member Data Documentation

bool canSearchAgain = true
private
RVOController controller
private
LayerMask groundMask
float maxSpeed = 10
float moveNextDist = 1
float nextRepath = 0
private
Path path = null
private
MeshRenderer [] rends
private
float repathRate = 1
Seeker seeker
private
float slowdownDistance = 1
Vector3 target
private
List<Vector3> vectorPath
private
int wp
private

The documentation for this class was generated from the following file: