Ejemplo n.º 1
0
 private ParticleSystem(Game game, ContentManager content, ParticleFields loadedFields,
                        CInitialPropertiesForQuad loadedInitialProperties, EmitterFields loadedEmitterFields)
     : base(game)
 {
     _game = game;
     _content = content;
     LoadedFields = loadedFields;
     LoadedInitialProperties = loadedInitialProperties;
     LoadedEmitterFields = loadedEmitterFields;
 }
Ejemplo n.º 2
0
 public static void CopyEmitterFieldsToParticleEmitter(EmitterFields copyEmitter, ParticleEmitter emitter)
 {
     emitter.EmitParticlesAutomatically = copyEmitter.EmitParticlesAutomatically;
     emitter.LerpEmittersPositionAndOrientation = copyEmitter.LerpEmittersPositionAndOrientation;
     emitter.LerpEmittersPositionAndOrientationOnNextUpdate =
         copyEmitter.LerpEmittersPositionAndOrientationOnNextUpdate;
     emitter.ParticlesPerSecond = copyEmitter.ParticlesPerSecond;
     emitter.BurstParticles = copyEmitter.BurstParticles;
     emitter.BurstTime = copyEmitter.BurstTime;
     emitter.PositionData.Position = copyEmitter.Position;
 }