1
2
3
4
5
6
7
8
9
10
11
12
13
    public void ShootCircular(Vector3 centerPos, float radius, int cnt)
    {
        float angle = 360f / (float)cnt;
        for (int i = 0; i < cnt; i++)
        {
            Quaternion rotation = Quaternion.AngleAxis(i * angle, Vector3.forward);
            Vector3 direction = rotation * Vector3.up;
 
            Vector3 position = centerPos + (direction * radius);
 
            var p = Instantiate(projectile, centerPos, Quaternion.Euler(Vector3.zero));
        }
    }
cs

radius 는 직경이고 cnt 로 각도를 구하는 방식

참고하시기