private void SpawnEntityParticles(int count)
        {
            for (int i = 0; i < count; i++)
            {
                ParticleEntity p;

                AddChild(p = new Graphics.ParticleEntity
                {
                    MainGraphic             = (MetaModel)ParticleModel.Clone(),
                    VisibilityLocalBounding = Vector3.Zero,
                    TimeElapsed             = 0.0f,
                    Direction           = Direction,
                    Acceleration        = Acceleration,
                    InitialTranslation  = ParticleStay ? CombinedWorldMatrix : Matrix.Identity,
                    OrientationRelation = ParticleStay ? OrientationRelation.Absolute : OrientationRelation.Relative,
                });
                p.RandomNumbers = new float[] { (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble(),
                                                (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble() };
                ((MetaModel)p.MainGraphic).Opacity = 0;
            }
        }
 private void SpawnGraphicParticles(int count)
 {
     for (int i = 0; i < count; i++)
     {
         Particle  p;
         MetaModel m = (MetaModel)ParticleModel.Clone();
         particles.Add(p = new Particle
         {
             MainGraphic        = m,
             Acceleration       = Acceleration,
             Direction          = Direction,
             TimeElapsed        = 0,
             InitialTranslation = ParticleStay ? CombinedWorldMatrix : Matrix.Identity,
             InitialModelMatrix = m.World
         });
         m.OrientationRelation = ModelOrientationRelation.Absolute;
         m.Opacity             = 0;
         p.RandomNumbers       = new float[] { (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble(),
                                               (float)random.NextDouble(), (float)random.NextDouble(), (float)random.NextDouble() };
         AddGraphic(m);
     }
 }