Particle3DEmitterTests ParticlesUpdatingPosition 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 ParticlesUpdatingPosition()
Examples

[Test, CloseAfterFirstFrame]
public void ParticlesUpdatingPosition()
{
    Randomizer.Use(new FixedRandom());
    var emitter = new ParticleEmitter(GetEmitterData(logo), Vector3D.Zero);
    AdvanceTimeAndUpdateEntities(0.1f);
    Assert.AreNotEqual(emitter.Position, emitter.particles[0].Position);
    Assert.IsTrue(
        emitter.particles[0].Position.IsNearlyEqual(new Vector3D(-0.03333334f, -0.03333334f,
            0.0058f)));
}
See Also