CameraControl

Description

sealed class Tinman.Engine.Components.CameraControl

Derived from

CameraControlBase abstract

A default camera control.

The camera can be controlled with the mouse (see CameraControlDrag) and with typical WASD controls (see CameraControlFree).

Public / Constructors

Camera​Control


public constructor CameraControl → (2)

view opt : ICameraViewport = null

The initial ICameraViewport object that provides the view into the world.

world opt : ICameraWorld = null

The initial ICameraWorld object that provides the world.

Creates a new instance of CameraControl.

Public / Attributes

Drag​Control


public attribute DragControl → (get)

value : CameraControlDrag

[not-null]
The aggregated camera control.

The aggregated CameraControlDrag object.

Free​Control


public attribute FreeControl → (get)

value : CameraControlFree

[not-null]
The aggregated camera control.

The aggregated CameraControlFree object.

Free​Mode


public attribute FreeMode → (get,set)

value : bool

true if the control is in free mode, false if not.

Is the camera control currently in free mode?

Input


public attribute Input → (get)

value : IInputState

The input state object or null if none.

The current IInputState object.

Suspend


public attribute Suspend → (get,set)

value : bool

true to suspend camera control,
false to resume it.

Suspend camera control?

Defaults to false.