Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Rendering3D.Tests.Cameras.IsometricCameraTests
2 unit tests call DeltaEngine.Rendering3D.Cameras.IsometricCamera.MoveDown(System.Single)
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Parameters
- distance
- Type: System Single
Remarks
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 MoveDown() { camera.MoveDown(1.0f); Assert.AreEqual(new Vector3D(0.0f, -1.0f, -1.0f), camera.Position); }
See Also