SixDofCrosshair

Description

sealed class Tinman.Engine.Components.SixDofCrosshair

Renders a cross-hair when controlling the camera in 6-DOF mode.

Public / Constants

Move​Backward


public constant MoveBackward → (0:int32)

Key slot for moving backwards.

Move​Down


public constant MoveDown → (1:int32)

Key slot for moving downwards.

Move​Forward


public constant MoveForward → (2:int32)

Key slot for moving forwards.

Move​Left


public constant MoveLeft → (3:int32)

Key slot for moving to the left.

Move​Right


public constant MoveRight → (4:int32)

Key slot for moving to the right.

Move​Up


public constant MoveUp → (5:int32)

Key slot for moving upwards.

Roll​Left


public constant RollLeft → (6:int32)

Key slot for rolling to the left.

Roll​Right


public constant RollRight → (7:int32)

Key slot for rolling to the right.

Public / Constructors

Six​Dof​Crosshair


public constructor SixDofCrosshair → ()

Creates a new instance of SixDofCrosshair.

Public / Methods

Key


public method Key → (3)

which in : int32

[0..7]
The cross-hair slot, one of:
MoveBackward, MoveDown, MoveForward, MoveLeft, MoveRight, MoveUp, RollLeft, RollRight

key in : KeyboardKey

The keyboard key.

name opt : char = '\0'

The associated key name or '\0' for none.

returns → SixDofCrosshair

this

Specifies a key name.

Keys


public method Keys → (1)

azerty in : bool

Use AZERTY key names?

returns → SixDofCrosshair

this

Specifies default key names for QWERTZ / QWERTY / AZERTY keyboard layouts.

Public / Attributes

Zoom


public attribute Zoom → (get,set)

value : float64

The zoom factor.

The current zoom factor of the camera.