- Home /
 
Creating Objects In Circle Starting at the top.
I am currently using this to evenly distibute a constantly changing amount of objects in a circle.
float pointNum = (i*1.0f)/golemTierCount;
             float angle = pointNum * Mathf.PI * 2 - offset;
             
             float x = Mathf.Cos(angle) * radius;
             float y = Mathf.Sin(angle) * radius;
             Vector3 pointPos = new Vector3(x, y) + UI.gameObject.transform.position;
 
               And it works great but it seems to start at the right when odd and the top when even and i cant seem to find a way to get it to start at the top no matter how many objects there are.
Any help would be appreciated.
               Comment
              
 
               
              Your answer
 
             Follow this Question
Related Questions
simulate a circle move 2 Answers
Move In Circle relative to rotation. 1 Answer
Choose starting point/angle for rotation with cos and sin 0 Answers
sin error invee sin error 1 Answer
radiusX and radiusY ? 1 Answer