CameraLookAt

Description

sealed class Tinman.Engine.Scenes.Entities.CameraLookAt

Derived from

CameraCenter abstract
ISceneEntityViewFocusable

A scene entity view that places the camera at a given point in local-space, making it look at a specific target.

Public / Constructors

Camera​Look​At


public constructor CameraLookAt → ()

Creates a new instance of CameraLookAt.

Public / Attributes

Target


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

value : Vec3D

The look-at target, in local-space.

The camera look-at target.

Defaults to (0,0,1).

Up


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

value : Vec3D

The up-vector, in local-space.

The camera up-vector.

Defaults to (0,1,0).

Zoom​Control


public attribute ZoomControl → (get,set)

value : InputModifiers

The input modifiers.

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

Zoom​Rate


public attribute ZoomRate → (get,set)

value : float64

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

The zoom change rate for mouse control.

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

zoom = zoom * (1 + w / rate)

Defaults to 10.