Hey everyone,
private void ArrowPositionUpdater()
{
int arrowCount = transform.childCount;
float angleSelection = Mathf.PI * 2f / arrowCount;
for (int i = 0; i < arrowCount; i++)
{
Transform child = transform.GetChild(i);
float angle = i * angleSelection;
Vector3 arrowPosition = transform.position + new Vector3(rx * Mathf.Cos(angle),
ry * Mathf.Sin(angle) * Mathf.Sqrt(i),
0f);
child.position = arrowPosition;
}
}
with the method above I am able to continuously move objects in a circle formation, however I would like to fill that circle. I want objects to move in a filled circle formation.
Can you please give me an idea on this ?
Thanks!