/// <summary> /// Copies the given Emitter's values into this instance. /// </summary> /// <param name="emitterToCopy">The emitter to copy from.</param> public void CopyFrom(ParticleEmitter emitterToCopy) { _positionData.CopyFrom(emitterToCopy._positionData); _orientationData.CopyFrom(emitterToCopy._orientationData); _pivotPointData = new PivotPoint3D(_positionData, _orientationData); Enabled = emitterToCopy.Enabled; EmitParticlesAutomatically = emitterToCopy.EmitParticlesAutomatically; _burstNumberOfParticles = emitterToCopy._burstNumberOfParticles; _burstTimeInSeconds = emitterToCopy._burstTimeInSeconds; _particlesPerSecond = emitterToCopy._particlesPerSecond; _secondsPerParticle = emitterToCopy._secondsPerParticle; _timeElapsedSinceGeneratingLastParticle = emitterToCopy._timeElapsedSinceGeneratingLastParticle; BurstComplete = emitterToCopy.BurstComplete; }
/// <summary> /// Copies the given Point Magnet's data into this Point Magnet's data /// </summary> /// <param name="cMagnetToCopy">The Point Magnet to copy from</param> public void CopyFrom(MagnetPoint cMagnetToCopy) { base.CopyFrom(cMagnetToCopy); PositionData.CopyFrom(cMagnetToCopy.PositionData); }