A* Pathfinding Project
3.8.12
The A* Pathfinding Project for Unity 3D
|
RVO Example Scene Unit Controller. More...
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< RVOExampleAgent > | selection = new List<RVOExampleAgent>() |
Simulator | sim |
Vector2 | start |
bool | wasDown = false |
Color GetColor | ( | float | angle | ) |
Color from an angle.
|
staticprivate |
Converts an HSV color to an RGB color.
According to the algorithm described at http://en.wikipedia.org/wiki/HSL_and_HSV
|
private |
void Order | ( | ) |
void Select | ( | Vector2 | _start, |
Vector2 | _end | ||
) |
void Start | ( | ) |
void Update | ( | ) |
bool adjustCamera = true |
|
private |
|
private |
|
private |
Radians to degrees constant.
|
private |
GUIStyle selectionBox |
|
private |
|
private |
|
private |