Esempio n. 1
0
        public Particle(Engine3D engine)
        {
            this.engine = engine;

            var r = new Random();

            for (int z = 0; z < 100; z++)
            {
                for (int x = 0; x < 100; x++)
                {
                    Status s = new Status
                    {
                        Offset   = new Vector3(x, (float)r.Next(30), z),
                        Speed    = new Vector3((float)r.Next(10), (float)r.Next(10), (float)r.Next(10)) * 0.0001f,
                        SpinAxis = Vector3.Normalize(new Vector3(0, 1, 0)),
                        Spin     = 1f / (float)r.Next(10),
                    };
                    statusArray.Add(s);
                }
            }
        }
Esempio n. 2
0
 public Form1()
 {
     InitializeComponent();
     engine = new Engine3D();
 }