IsometricCameraTests MoveUp Method Delta Engine Documentation

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

public void MoveUp()
Examples

[Test]
public void MoveIsometricCamera()
{
    RegisterCommand(Key.J, () => camera.MoveLeft(MoveDistance));
    RegisterCommand(Key.L, () => camera.MoveRight(MoveDistance));
    RegisterCommand(Key.I, () => camera.MoveUp(MoveDistance));
    RegisterCommand(Key.K, () => camera.MoveDown(MoveDistance));
    RegisterCommand(Key.U, () => camera.Zoom(ZoomAmount));
    RegisterCommand(Key.O, () => camera.Zoom(1 / ZoomAmount));
}
[Test, CloseAfterFirstFrame]
public void MoveUp()
{
    camera.MoveUp(1.0f);
    Assert.AreEqual(new Vector3D(0.0f, -1.0f, 1.0f), camera.Position);
}
See Also