We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 244c2f8 commit 5483a5dCopy full SHA for 5483a5d
Assets/Scripts/Core/Mesh/RegularPolygonMesh.cs
@@ -64,9 +64,8 @@ public void OnPopulateMesh(VertexBuffer vb)
64
Rect rect = drawRect != null ? (Rect)drawRect : vb.contentRect;
65
Color32 color = fillColor != null ? (Color32)fillColor : vb.vertexColor;
66
67
- rotation = rotation * Mathf.Deg2Rad;
68
float angleDelta = 2 * Mathf.PI / sides;
69
- float angle = rotation;
+ float angle = rotation * Mathf.Deg2Rad;
70
float radius = Mathf.Min(rect.width / 2, rect.height / 2);
71
72
float centerX = radius + rect.x;
0 commit comments