Namespace: DeltaEngine.Rendering3D.Particles.Tests
Assembly: DeltaEngine.Rendering3D.Particles.Tests (in DeltaEngine.Rendering3D.Particles.Tests.dll) Version: 1.1.1.0 (1.1.1)
Assembly: DeltaEngine.Rendering3D.Particles.Tests (in DeltaEngine.Rendering3D.Particles.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Examples
[Test, CloseAfterFirstFrame] public void ParticlesTrackingEmitterUpdatingPosition() { Randomizer.Use(new FixedRandom()); var emitterData = GetEmitterData(logo); emitterData.DoParticlesTrackEmitter = true; var emitter = new ParticleEmitter(emitterData, Vector3D.Zero); AdvanceTimeAndUpdateEntities(0.1f); emitter.Position = Vector3D.One; AdvanceTimeAndUpdateEntities(0.1f); Assert.IsTrue( emitter.particles[0].Position.IsNearlyEqual(new Vector3D(0.90025f, 0.90025f, 1.0175f))); }
See Also