ParticleSystem FireBurstOfAllEmitters Method Delta Engine Documentation

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

public void FireBurstOfAllEmitters()
Remarks

Tests: DeltaEngine.Rendering3D.Particles.Tests.ParticleSystemTests
Examples

1 unit tests call DeltaEngine.Rendering3D.Particles.ParticleSystem.FireBurstOfAllEmitters
[Test, CloseAfterFirstFrame]
public void AttachingEmitterSetsPositionAndRotation()
{
    particleSystem.Position = Vector3D.UnitY;
    particleSystem.Orientation = Quaternion.FromAxisAngle(Vector3D.UnitZ, 45);
    var emitter = CreateAndAttachEmitter(Vector3D.UnitX);
    particleSystem.FireBurstOfAllEmitters();
    particleSystem.FireBurstAtRelativePosition(Vector3D.One);
    particleSystem.FireBurstAtRelativePositionAndRotation(Vector3D.One, 0.5f);
    Assert.AreEqual(particleSystem.Position, emitter.Position);
    Assert.AreEqual(particleSystem.Orientation, emitter.Rotation);
    Assert.IsTrue(particleSystem.IsActive);
    particleSystem.IsActive = false;
    Assert.IsFalse(particleSystem.IsActive);
}
See Also