Qt3DExtras::QFirstPersonCameraController Class

class Qt3DExtras::QFirstPersonCameraController

QFirstPersonCameraController 类允许从第一人称视角控制场景摄像机。更多

Header: #include <QFirstPersonCameraController>
CMake: find_package(Qt6 REQUIRED COMPONENTS 3dextras)
target_link_libraries(mytarget PRIVATE Qt6::3dextras)
qmake: QT += 3dextras
继承: Qt3DExtras::QAbstractCameraController
状态:已废弃

详细说明

控件包括

输入操作
鼠标左键按下鼠标左键时,鼠标沿 x 轴移动可平移摄像机,沿 y 轴移动可倾斜摄像机。
鼠标滚轮在不改变视图中心的情况下放大或缩小摄像机。
移动键按下时将精细运动控制激活。降低鼠标平移和倾斜的灵敏度。
箭头键相对于摄像机视口水平移动摄像机。
上下翻页键相对于摄像机视口垂直移动摄像机。
逃逸移动摄像机,使整个场景在摄像机视口中可见。

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.