Exemplo n.º 1
0
        public static DebriProjectile[] Create(Projectile projectile, int count)
        {
            List <DebriProjectile> retval = new List <DebriProjectile>(count + 1);
            float angle = GsMath.ToRadians(90f);
            float step  = GsMath.ToRadians(360f) / count;

            for (int i = 0; i < count; ++i, angle += step)
            {
                retval.Add(new DebriProjectile(projectile.Parent, projectile, angle));
            }
            return(retval.ToArray());
        }