CameraControlDrag

Description

sealed class Tinman.Engine.Components.CameraControlDrag

Derived from

CameraControlBase abstract

An implementation of the ICameraControl interface that controls the camera by dragging the mouse.

MouseButton.Left:
Picks a world anchor and moves the camera so that the anchor stays at the mouse cursor.

MouseButton.Right:
Picks a world anchor and rotates around the world up-vector (yaw) and the camera side vector (pitch).

Public / Constructors

Camera​Control​Drag


public constructor CameraControlDrag → ()

Creates a new instance of CameraControlDrag.

Public / Attributes

Mode


public attribute Mode → (get)

value : int32

The mode:
0 : camera control is inactive
1 : dragging camera position
2 : orbiting around anchor
3 : moving to/from anchor

The current camera control mode.