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

[Test, CloseAfterFirstFrame]
public void SetForce()
{
    var emitter = new ParticleEmitter(GetEmitterData(spark, 512), Vector3D.Zero);
    var force = new RangeGraph<Vector3D>(Vector3D.One);
    emitter.EmitterData.Acceleration = force;
    Assert.AreEqual(force, emitter.EmitterData.Acceleration);
}
See Also