public void DrawGizmos() { // GizmosEx.DrawCircle(centroid, radius, Vector3.up); GizmosEx.DrawPolygon(hull.points); // foreach(var point in hull.points) // Gizmos.DrawSphere(point, 0.2f); }
public void OnDrawGizmos() { if (points == null) { return; } foreach (var point in points) { Gizmos.DrawCube(point, Vector3.one * 0.1f); } GizmosEx.DrawPolygon(hull.points); }
public void DrawGizmos() { foreach(var fairwayPoint in points) { // GizmosEx.DrawCircle(fairwayPoint.position, fairwayPoint.radius, transform.up); // var coords = MathfEx.CircleCoordinatesXZ(fairwayPoint.position, fairwayPoint.radius, transform.rotation); // foreach(var coord in coords) // Gizmos.DrawWireSphere(coord, 0.1f); } Gizmos.color = Color.white; foreach(var hull in hulls) GizmosEx.DrawPolygon(hull.points); Gizmos.color = Color.yellow; GizmosEx.DrawPolygon(holeHull.points); }