Пример #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
         });
     }
 }
Пример #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
     });
 }
Пример #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
     });
 }
Пример #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
     });
 }
Пример #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
     });
 }