Esempio n. 1
0
        public override void AgregarParticulas(int cantidad)
        {
            GotaPart p;
            int      i;
            Vector3  dire = new Vector3(0, 1, 0);
            int      tex;

            for (i = this.ParticlesAmount; i < (this.ParticlesAmount + cantidad); i++)
            {
                tex = r.Next(0, this.Textures.Count);
                p   = new GotaPart(this.InitCoords, this.Speed, this.Acceleration, dire, this.InitialColor, this.InitialAlpha, this.PointSizeMin, this.TimeToLive_Particle, this.Textures[tex]);
                this.Particles.Add(p);
                p.Index_ParticleVertex = i;
                this.ParticlesVertex.Add(p.CV_PositionColored);
            }
            this.ParticlesAmount += cantidad;
        }
Esempio n. 2
0
        public override void InicializarParticulas()
        {
            GotaPart p;
            int      i;
            Vector3  dire = this.Speed;
            //this.Speed = new Vector3(5,0,5);
            float size = this.PointSizeMin;
            int   tex;

            for (i = 0; i < (this.ParticlesAmount); i++)
            {
                tex = r.Next(0, this.Textures.Count);
                p   = new GotaPart(this.InitCoords, new Vector3(5, 0, 5), this.Acceleration, this.Speed, this.InitialColor, this.InitialAlpha, size, this.TimeToLive_Particle, this.Textures[tex]);
                this.Particles.Add(p);
                p.Index_ParticleVertex = i;
                this.ParticlesVertex.Add(p.CV_PositionColored);
            }
        }
        public override void InicializarParticulas()
        {
            GotaPart p;
            int i;
            Vector3 dire = this.Speed;
            //this.Speed = new Vector3(5,0,5);
            float size = this.PointSizeMin;
            int tex;

            for (i = 0; i < (this.ParticlesAmount); i++)
            {
                tex = r.Next(0, this.Textures.Count);
                p = new GotaPart(this.InitCoords, new Vector3(5,0,5), this.Acceleration, this.Speed, this.InitialColor, this.InitialAlpha, size, this.TimeToLive_Particle, this.Textures[tex]);
                this.Particles.Add(p);
                p.Index_ParticleVertex = i;
                this.ParticlesVertex.Add(p.CV_PositionColored);
            }
        }
 public override void AgregarParticulas(int cantidad)
 {
     GotaPart p;
     int i;
     Vector3 dire = new Vector3(0, 1, 0);
     int tex;
     for (i = this.ParticlesAmount; i < (this.ParticlesAmount + cantidad); i++)
     {
         tex = r.Next(0, this.Textures.Count);
         p = new GotaPart(this.InitCoords, this.Speed, this.Acceleration, dire, this.InitialColor, this.InitialAlpha, this.PointSizeMin, this.TimeToLive_Particle, this.Textures[tex]);
         this.Particles.Add(p);
         p.Index_ParticleVertex = i;
         this.ParticlesVertex.Add(p.CV_PositionColored);
     }
     this.ParticlesAmount += cantidad;
 }