public void AddElement(Vector3 pos, Vector3 eulerAngles) { FTPoint p = AddElement(); p.transform.position = pos; p.transform.eulerAngles = eulerAngles; }
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); } } }
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); } } }
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)); }