CameraOrbit

Description

sealed class Tinman.Engine.Scenes.Entities.CameraOrbit

Derived from

CameraYawPitch abstract

A scene entity view that centers the camera on a given point in local-space, allowing the user to orbit around it.

Public / Constructors

Camera​Orbit


public constructor CameraOrbit → ()

Creates a new instance of CameraOrbit.

Public / Attributes

Distance


[JsonProperty]
public attribute Distance → (get,set)

value : float64

The distance.

The current distance between the camera and the point being orbited.

Defaults to 0.

Distance​Control


public attribute DistanceControl → (get,set)

value : InputModifiers

The input modifiers.

The input modifiers that must be present to enable control of Distance via the mouse, in addition to the default mouse wheel control.

Distance​Range


public attribute DistanceRange → (get,set)

value : RangeD

The camera distance range.

The range of allowed camera distance values.

Defaults to 0..Maths.MaxDouble.

Distance​Rate


public attribute DistanceRate → (get,set)

value : float64

The distance change rate (see remarks). Set to 0 to disable distance control.

The distance change rate for mouse control.

For a mouse wheel movement of w, the distance is changed as follows:

distance = distance * pow(sqrt(2), w / rate)

Defaults to 3.