QFirstPersonCameraController Class

class Qt3DExtras ::QFirstPersonCameraController

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective. 更多...

头: #include <QFirstPersonCameraController>
qmake: QT += 3dextras
Since: Qt 5.7
继承: Qt3DExtras::QAbstractCameraController

该类在 Qt 5.7 引入。

详细描述

The controls are:

Input 动作
Left mouse button While the left mouse button is pressed, mouse movement along x-axis pans the camera and movement along y-axis tilts it.
Mouse scroll wheel Zooms the camera in and out without changing the view center.
Shift key Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive.
方向键 Move the camera horizontally relative to camera viewport.
Page up and page down keys Move the camera vertically relative to camera viewport.
Escape Moves the camera so that entire scene is visible in the camera viewport.