// Update is called once per frame void OnDrawGizmos() { if (randomPoints != null) { Gizmos.color = Color.cyan; for (int i = 0; i < randomPoints.Count; i++) { Gizmos.DrawWireSphere(randomPoints[i], 1.5f); } Gizmos.color = Color.magenta; for (int i = 0; i < randomPoints.Count - 1; i++) { Gizmos.DrawWireSphere(Vector3.Lerp(randomPoints[i + 1], randomPoints[i], 0.5f), 1.5f); } } if (curve != null) { Gizmos.color = Color.white; for (int i = 0; i < num; i++) { float v = (float)i / num; Vector3 pt; if (useGetPointAt) { pt = curve.getPointAt(v); } else { pt = curve.getPoint(v); } Gizmos.DrawWireSphere(pt, 0.25f); } } if (spline != null) { Gizmos.color = Color.green; for (int i = 0; i < num; i++) { float v = (float)i / num; Vector3 pt; if (useGetPointAt) { pt = spline.getPointAt(v); } else { pt = spline.getPoint(v); } Gizmos.DrawWireSphere(pt, 0.25f); } } if (shapePath != null) { Gizmos.color = Color.blue; for (int i = 0; i < num; i++) { float v = (float)i / num; Vector3 pt; pt = shapePath.getPointInfoVec3Percent(v); Gizmos.DrawWireSphere(pt, 0.25f); } } }