/// <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); }
/// <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); }
/// <summary> /// Adds a particle to the system. /// </summary> /// <param name="particle"></param> public void Add(BaseParticle particle) { m_Particles.Add(particle); }