Like LookAtCamera but uses Orthographic projection and the look direction can never
be changed from how it was set in the constructor. Moving forwards and backwards has no
meaning for Orthographic, instead Zooming rescales the world
View code on GitHub
Inheritance Hierarchy
DeltaEngine.Entities Entity
DeltaEngine.Rendering3D.Cameras Camera
DeltaEngine.Rendering3D.Cameras TargetedCamera
DeltaEngine.Rendering3D.Cameras IsometricCamera
Namespace: DeltaEngine.Rendering3D.Cameras
Assembly: DeltaEngine.Rendering3D (in DeltaEngine.Rendering3D.dll) Version: 1.1.1.0 (1.1.1)
Syntax
The IsometricCamera type exposes the following members.
Constructors
Name | Description | |
---|---|---|
IsometricCamera(Device, Window) | Initializes a new instance of the IsometricCamera class | |
IsometricCamera(Device, Window, Vector3D) | Initializes a new instance of the IsometricCamera class |
Methods
Fields
Name | Description | |
---|---|---|
components | (Inherited from Entity.) | |
window | (Inherited from Camera.) |
Properties
Name | Description | |
---|---|---|
FarPlane | (Inherited from Camera.) | |
FieldOfView | (Inherited from Camera.) | |
IsActive | (Inherited from Entity.) | |
IsPauseable | (Inherited from Entity.) | |
NearPlane | (Inherited from Camera.) | |
NumberOfComponents | (Inherited from Entity.) | |
Position | (Overrides Camera Position.) | |
Target | (Overrides TargetedCamera Target.) | |
UpdatePriority | (Inherited from Entity.) | |
ZoomScale |
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 SettingPositionMovesTarget() { camera.Position = new Vector3D(10.0f, 10.0f, 10.0f); Assert.AreEqual(new Vector3D(10.0f, 11.0f, 10.0f), camera.Target); }
[Test, CloseAfterFirstFrame] public void SettingTargetMovesPosition() { camera.Target = new Vector3D(10.0f, 10.0f, 10.0f); Assert.AreEqual(new Vector3D(10.0f, 9.0f, 10.0f), camera.Position); }
See Also