Exemple #1
0
 public static void DrawSpheres(GizmoUtils gu, Vector3[] positions, float radius, Color color)
 {
     for (int i = 0; i < positions.Length; ++i)
     {
         gu.spheres.Add(new Sphere {
             position = positions[i], radius = radius, color = color
         });
     }
 }
Exemple #2
0
 public static void DrawRing(GizmoUtils gu, Matrix4x4 matrix, float radius, Color color, float lineThickness = 0.01f, int segments = 16)
 {
     gu.rings.Add(new Ring {
         matrix = matrix, radius = radius, color = color, lineThickness = lineThickness, segments = segments
     });
 }
Exemple #3
0
 public static void DrawWireCube(GizmoUtils gu, Vector3 position, Vector3 size, Color color)
 {
     gu.cubesWire.Add(new Cube {
         position = position, size = size, color = color
     });
 }
Exemple #4
0
 public static void DrawLine(GizmoUtils gu, Vector3 from, Vector3 to, Color color)
 {
     gu.lines.Add(new Line {
         from = from, to = to, color = color
     });
 }
Exemple #5
0
 public static void DrawWireSphere(GizmoUtils gu, Vector3 position, float radius, Color color)
 {
     gu.spheresWire.Add(new Sphere {
         position = position, radius = radius, color = color
     });
 }