IsometricCamera MoveRight Method Delta Engine Documentation

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

public void MoveRight(
	float distance
)
Remarks

Tests: DeltaEngine.Rendering3D.Tests.Cameras.IsometricCameraTests
Examples

2 unit tests call DeltaEngine.Rendering3D.Cameras.IsometricCamera.MoveRight(System.Single)
[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 MoveRight()
{
    camera.MoveRight(1.0f);
    Assert.AreEqual(new Vector3D(1.0f, -1.0f, 0.0f), camera.Position);
}
See Also