QFirstPersonCameraController Class

class Qt3DExtras::QFirstPersonCameraController

QFirstPersonCameraControllerクラスは、一人称視点からのシーンカメラのコントロールを可能にします。もっと詳しく...

ヘッダー #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.