SixDofCrosshair

Description

sealed class Tinman.Engine.Components.SixDofCrosshair

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

Public / Constants

MoveBackward


public constant MoveBackward → (0:int32)

Key slot for moving backwards.

MoveDown


public constant MoveDown → (1:int32)

Key slot for moving downwards.

MoveForward


public constant MoveForward → (2:int32)

Key slot for moving forwards.

MoveLeft


public constant MoveLeft → (3:int32)

Key slot for moving to the left.

MoveRight


public constant MoveRight → (4:int32)

Key slot for moving to the right.

MoveUp


public constant MoveUp → (5:int32)

Key slot for moving upwards.

RollLeft


public constant RollLeft → (6:int32)

Key slot for rolling to the left.

RollRight


public constant RollRight → (7:int32)

Key slot for rolling to the right.

Public / Constructors

SixDofCrosshair


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.