Esempio n. 1
0
        public void AddElement(Vector3 pos, Vector3 eulerAngles)
        {
            FTPoint p = AddElement();

            p.transform.position    = pos;
            p.transform.eulerAngles = eulerAngles;
        }
Esempio n. 2
0
 public override void OnDrawGizmos()
 {
     transform.localScale = Vector3.one;
     for (int i = 0; i < Points.Count; i++)
     {
         FTPoint p = Points[i];
         if (p == null)
         {
             Points.RemoveAt(i);
         }
         else
         {
             FTDraw.DrawGizmosSphere(p.transform, Color.red, 1);
         }
     }
 }
Esempio n. 3
0
 public override void OnDrawGizmos()
 {
     transform.localScale = Vector3.one;
     for (int i = 0; i < Points.Count; i++)
     {
         FTPoint p = Points[i];
         if (p == null)
         {
             Points.RemoveAt(i);
         }
         else
         {
             FTDraw.DrawCube(p.transform.position, new Color32(245, 130, 32, 255), 0.2f);
         }
     }
 }
Esempio n. 4
0
 public override void OnDrawGizmos()
 {
     transform.localScale = Vector3.one;
     for (int i = 0; i < Points.Count; i++)
     {
         FTPoint p = Points[i];
         if (p == null)
         {
             Points.RemoveAt(i);
         }
         else
         {
             FTDraw.DrawGizmosCapsule(p.transform.position + new Vector3(0, 0.5f, 0), p.transform.rotation, Vector3.one * 0.5f, Color.red);
         }
     }
     FTDraw.DrawCircle(transform.position, 10, new Color(1, 0, 0, 0.1f));
 }