Particle3DEmitterTests SpawnOneBurst Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Particles.Tests
Assembly: DeltaEngine.Rendering3D.Particles.Tests (in DeltaEngine.Rendering3D.Particles.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void SpawnOneBurst()
Examples

[Test]
public void SpawnOneBurst()
{
    camera.Position = Vector3D.One / 2;
    var emitterData = GetEmitterData(spark, 512);
    emitterData.SpawnInterval = 0.0f;
    var emitter = new ParticleEmitter(emitterData, Vector3D.Zero);
    new Command(() => emitter.Spawn(64)).Add(new KeyTrigger(Key.Space));
}
See Also