Qt3DExtras::QFirstPersonCameraController Class
class Qt3DExtras::QFirstPersonCameraControllerQFirstPersonCameraController 클래스를 사용하면 1인칭 시점에서 씬 카메라를 제어할 수 있습니다. 더 보기...
| 헤더: | #include <qfirstpersoncameracontroller.h> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS 3dextras) target_link_libraries(mytarget PRIVATE Qt6::3dextras) |
| qmake: | QT += 3dextras |
| 상속: | Qt3DExtras::QAbstractCameraController |
| 상태: | 사용 중단됨 |
이 클래스는 더 이상 사용되지 않습니다. 새로운 코드에서는 이 클래스를 사용하지 않는 것을 강력히 권장합니다.
상세 설명
사용 가능한 컨트롤은 다음과 같습니다:
| 입력 | 동작 |
|---|---|
| 마우스 왼쪽 버튼 | 마우스 왼쪽 버튼을 누른 상태에서 x축을 따라 마우스를 움직이면 카메라가 이동하고, y축을 따라 움직이면 카메라가 기울어집니다. |
| 마우스 스크롤 휠 | 시야 중심을 변경하지 않고 카메라를 확대 및 축소합니다. |
| Shift 키 | 누르고 있는 동안 미세 동작 제어 기능이 활성화됩니다. 마우스로 카메라를 이동하거나 기울일 때의 반응이 덜 민감해집니다. |
| 화살표 키 | 카메라 뷰포트 기준 수평 방향으로 카메라를 이동합니다. |
| Page Up 및 Page Down 키 | 카메라 뷰포트에 대해 카메라를 수직으로 이동합니다. |
| Esc | 카메라 뷰포트 내에 전체 장면이 보이도록 카메라를 이동합니다. |
© 2026 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.