Table of Contents

Class ZoomCamera

Namespace
OmegaEngine.Graphics.Cameras
Assembly
OmegaEngine.dll

Common base class for cameras that support zooming.

public abstract class ZoomCamera : MatrixCamera, IInputReceiver, IPositionable
Inheritance
object
ZoomCamera
Implements
Derived
Inherited Members

Properties

MaxRadius

The maximum radius allowed.

public double MaxRadius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

MinRadius

The minimum radius allowed.

public double MinRadius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

Radius

The distance between the camera and the center of the target.

public double Radius { get; set; }

Property Value

double

Remarks

Must be a positive real number.

ZoomBase

Base factor used for exponential zoom scaling.

[FloatRange(0, 2)]
public double ZoomBase { get; set; }

Property Value

double

ZoomSensitivity

Controls the sensitivity of zoom operations.

[FloatRange(0, 10)]
public double ZoomSensitivity { get; set; }

Property Value

double

Methods

Navigate(DoubleVector3, DoubleVector3)

Called when the user changes the view perspective.

public override void Navigate(DoubleVector3 translation = default, DoubleVector3 rotation = default)

Parameters

translation DoubleVector3

Movement in screen units. X = pan right, Y = pan up, Z = move forward

rotation DoubleVector3

Rotation in degrees. X = yaw right, Y = pitch up, Z = roll clockwise