예제 #1
0
 /// <summary>
 /// Copy Constructor.
 /// </summary>
 /// <param name="system">The particle system to copy.</param>
 public ParticleSystem(ParticleSystem system)
 {
     if (system == null)
     {
         throw new ArgumentNullException("system");
     }
     m_Manipulators = new ParticleManipulatorCollection(system.Manipulators);
     m_Particles    = new ParticleCollection();
     m_Particles.Add(system);
 }
예제 #2
0
 /// <summary>
 /// Creates a particle system with a collection of particles already in it.
 /// </summary>
 /// <param name="particles">The particles to use with this system.</param>
 public ParticleSystem(ParticleCollection particles)
 {
     m_Manipulators = new ParticleManipulatorCollection();
     m_Particles    = new ParticleCollection();
     m_Particles.Add(particles);
 }
예제 #3
0
 /// <summary>
 /// Adds a particle to the system.
 /// </summary>
 /// <param name="particle"></param>
 public void Add(BaseParticle particle)
 {
     m_Particles.Add(particle);
 }