Ejemplo n.º 1
0
        public void Draw()
        {
            OffsetShapeLog.enabled = true;
            OffsetShapeLog.DrawShapeNodes(_core.shape);

            int triCount = nodeTris.Count;

            for (int t = 0; t < triCount; t += 3)
            {
                Node a = nodeTris[t];
                Node b = nodeTris[t + 1];
                Node c = nodeTris[t + 2];

                Debug.DrawLine(Utils.ToV3(a.position), Utils.ToV3(b.position), Color.yellow);
                Debug.DrawLine(Utils.ToV3(b.position), Utils.ToV3(c.position), Color.yellow);
                Debug.DrawLine(Utils.ToV3(c.position), Utils.ToV3(a.position), Color.yellow);
            }
        }
Ejemplo n.º 2
0
 public void Draw()
 {
     OffsetShapeLog.enabled = true;
     OffsetShapeLog.DrawShapeNodes(_core.shape);
 }