Entity3DTests SettingFloatWithoutInterpolationSetsLastFloatAlso Method Delta Engine Documentation

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

public void SettingFloatWithoutInterpolationSetsLastFloatAlso()
Examples

[Test, CloseAfterFirstFrame]
public void SettingFloatWithoutInterpolationSetsLastFloatAlso()
{
    var entity = new MockEntity3D(Vector3D.Zero);
    entity.Add(90.0f);
    Assert.AreEqual(90.0f, entity.GetLastTickLerpComponents()[0]);
    entity.SetWithoutInterpolation(180.0f);
    Assert.AreEqual(180.0f, entity.Get<float>());
    Assert.AreEqual(180.0f, entity.GetLastTickLerpComponents()[0]);
}
See Also