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

RVO Example Scene Unit Controller. More...

Detailed Description

RVO Example Scene Unit Controller.

Controls AIs and camera in the RVO example scene.

Public Member Functions

Color GetColor (float angle)
 Color from an angle.
 
void Order ()
 
void Select (Vector2 _start, Vector2 _end)
 
void Start ()
 
void Update ()
 

Public Attributes

bool adjustCamera = true
 
GUIStyle selectionBox
 

Private Member Functions

void OnGUI ()
 

Static Private Member Functions

static Color HSVToRGB (float h, float s, float v)
 Converts an HSV color to an RGB color.
 

Private Attributes

Camera cam
 
Vector2 end
 
const float rad2Deg = 360.0f/ ((float)System.Math.PI*2)
 Radians to degrees constant.
 
List< RVOExampleAgentselection = new List<RVOExampleAgent>()
 
Simulator sim
 
Vector2 start
 
bool wasDown = false
 

Member Function Documentation

Color GetColor ( float  angle)

Color from an angle.

static Color HSVToRGB ( float  h,
float  s,
float  v 
)
staticprivate

Converts an HSV color to an RGB color.

According to the algorithm described at http://en.wikipedia.org/wiki/HSL_and_HSV

Author
Wikipedia
Returns
the RGB representation of the color.
void OnGUI ( )
private
void Order ( )
void Select ( Vector2  _start,
Vector2  _end 
)
void Start ( )
void Update ( )

Member Data Documentation

bool adjustCamera = true
Camera cam
private
Vector2 end
private
const float rad2Deg = 360.0f/ ((float)System.Math.PI*2)
private

Radians to degrees constant.

List<RVOExampleAgent> selection = new List<RVOExampleAgent>()
private
GUIStyle selectionBox
Simulator sim
private
Vector2 start
private
bool wasDown = false
private

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