FirstPersonCameraController QML Type
FirstPersonCameraController 允许从第一人称视角控制场景摄像机。更多
| Import Statement: | import Qt3D.Extras 2.11 |
| Inherits: | |
| Status: | Deprecated |
属性
- acceleration : real
- camera : Camera
- deceleration : real
- linearSpeed : real
- lookSpeed : real
详细说明
FirstPersonCameraController 允许从第一人称视角控制场景摄像机。
控制方式包括
| 输入 | 操作 |
|---|---|
| 鼠标左键 | 按下鼠标左键时,鼠标沿 X 轴移动可平移摄像头,沿 Y 轴移动可倾斜摄像头。 |
| Shift 键 | 在按下时将微动控制激活。降低鼠标平移和倾斜的灵敏度。 |
| 箭头键 | 相对于摄像机视口水平移动摄像机。 |
| 上下翻页键 | 相对于摄像机视口垂直移动摄像机。 |
属性文档
acceleration : real
保持当前加速度。指定按住一个键时摄像机线性速度的增加率。如果加速度为负值,线速度将保持不变。默认值为-1.0。
camera : Camera
保持当前控制的摄像机。
deceleration : real
指定按键释放时摄像机线性速度的下降速度。如果减速为负值,则线性速度保持不变。默认值为-1.0。
linearSpeed : real
保存摄像机控制器当前的线性速度。线性速度决定摄像机的移动速度。
lookSpeed : real
保存摄像机控制器当前的观察速度。观察速度决定了摄像机摇镜头和俯仰镜头的转动速度。
© 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.