Entity3DTests SettingOrientationWithoutInterpolationSetsLastOrientationAlso 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 SettingOrientationWithoutInterpolationSetsLastOrientationAlso()
Examples

[Test, CloseAfterFirstFrame]
public void SettingOrientationWithoutInterpolationSetsLastOrientationAlso()
{
    var entity = new MockEntity3D(Vector3D.Zero, Orientation1);
    Assert.AreEqual(Orientation1, entity.GetLastOrientation());
    entity.SetWithoutInterpolation(Orientation2);
    Assert.AreEqual(Orientation2, entity.Orientation);
    Assert.AreEqual(Orientation2, entity.GetLastOrientation());
}
See Also