Beispiel #1
0
        /// <summary>
        /// This function should create and initialise 'count' particles of the correct
        /// type. This is done automatically by default, only override if you want
        /// to change the standard behaviour.
        /// </summary>
        /// <param name="count"></param>
        public virtual void Initialise(int count)
        {
            //	Get rid of any old particles.
            particles.Clear();

            //	Add the particles.
            for (int i = 0; i < count; i++)
            {
                //	Create a particle.
                Particle particle = new BasicParticle();

                //	Initialise it.
                particle.Intialise(rand);

                //	Add it.
                particles.Add(particle);
            }
        }
Beispiel #2
0
		/// <summary>
		/// This function should create and initialise 'count' particles of the correct
		/// type. This is done automatically by default, only override if you want
		/// to change the standard behaviour.
		/// </summary>
		/// <param name="count"></param>
		public virtual void Initialise(int count)
		{
			//	Get rid of any old particles.
			particles.Clear();

			//	Add the particles.
			for(int i=0; i<count; i++)
			{
				//	Create a particle.
				Particle particle = new BasicParticle();

				//	Initialise it.
				particle.Intialise(rand);

				//	Add it.
				particles.Add(particle);
			}
		}