Esempio n. 1
0
        private void CreateFragmentAsteroid()
        {
            Random rand           = new Random((int)DateTime.Now.Ticks);
            var    numberAsteroid = rand.Next(2, 4);
            float  step           = 180 / (numberAsteroid + 1);
            float  angle          = 0;

            for (int i = 0; i < numberAsteroid; i++)
            {
                angle += step;
                _builder.CreateFragmentAsteroid(CenterPolygonAbsolute, angle + AngleRotate);
            }
        }