void
WirePolygon
(
float3 | center | Center of the polygon. |
int | vertices | Number of corners (and sides) of the polygon. |
quaternion | rotation | Rotation of the polygon. The first vertex will be radius units in front of center as seen from the rotation's point of view. |
float | radius | Distance from the center to each vertex. |
)
Draws a regular polygon outline.
Draw.WirePolygon(new Vector3(-0.5f, 0, +0.5f), 3, Quaternion.identity, 0.4f, color);
Draw.WirePolygon(new Vector3(+0.5f, 0, +0.5f), 4, Quaternion.identity, 0.4f, color);
Draw.WirePolygon(new Vector3(-0.5f, 0, -0.5f), 5, Quaternion.identity, 0.4f, color);
Draw.WirePolygon(new Vector3(+0.5f, 0, -0.5f), 6, Quaternion.identity, 0.4f, color);