Drought.Entity.MovableEntity.rebuildRing C# (CSharp) Метод

rebuildRing() публичный Метод

public rebuildRing ( ) : void
Результат void
        public void rebuildRing()
        {
            List<Vector3> pointsList = new List<Vector3>();
            float step = MathHelper.Pi / 16;
            for (float i = 0; i <= 32; i++)
            {
                Vector3 pointy = levelInfo.getPositionAt(position.X + (float)Math.Cos(i * step) * radius, position.Y + (float)Math.Sin(i * step) * radius);
                pointy.Z += 0.25f;
                pointsList.Add(pointy);
            }
            ringTool.setPointsList(pointsList);
        }