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

Helper methods for drawing gizmos and debug lines. More...

Detailed Description

Helper methods for drawing gizmos and debug lines.

Public Member Functions

void Bezier (Vector3 a, Vector3 b, Color color)
 
void CircleXZ (Vector3 center, float radius, Color color, float startAngle=0f, float endAngle=2 *Mathf.PI, int steps=40)
 
void CrossXZ (Vector3 position, Color color, float size=1)
 
void Cylinder (Vector3 position, Vector3 up, float height, float radius, Color color)
 
void Line (Vector3 a, Vector3 b, Color color)
 

Static Public Attributes

static readonly Draw Debug = new Draw { gizmos = false }
 
static readonly Draw Gizmos = new Draw { gizmos = true }
 

Private Member Functions

void SetColor (Color color)
 

Private Attributes

bool gizmos
 
Matrix4x4 matrix = Matrix4x4.identity
 

Member Function Documentation

void Bezier ( Vector3  a,
Vector3  b,
Color  color 
)
void CircleXZ ( Vector3  center,
float  radius,
Color  color,
float  startAngle = 0f,
float  endAngle = 2*Mathf.PI,
int  steps = 40 
)
void CrossXZ ( Vector3  position,
Color  color,
float  size = 1 
)
void Cylinder ( Vector3  position,
Vector3  up,
float  height,
float  radius,
Color  color 
)
void Line ( Vector3  a,
Vector3  b,
Color  color 
)
void SetColor ( Color  color)
private

Member Data Documentation

readonly Draw Debug = new Draw { gizmos = false }
static
readonly Draw Gizmos = new Draw { gizmos = true }
static
bool gizmos
private
Matrix4x4 matrix = Matrix4x4.identity
private

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