FirstPersonCameraController QML Type
The FirstPersonCameraController allows controlling the scene camera from the first person perspective. More...
Import Statement: | import Qt3D.Extras 2.12 |
Since: | Qt 5.7 |
Properties
- acceleration : real
- camera : Camera
- deceleration : real
- linearSpeed : real
- lookSpeed : real
Detailed Description
The FirstPersonCameraController allows controlling the scene camera from the first person perspective.
The controls are:
Input | Action |
---|---|
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. |
Shift key | Turns the fine motion control active while pressed. Makes mouse pan and tilt less sensitive. |
Arrow keys | Move the camera horizontally relative to camera viewport. |
Page up and page down keys | Move the camera vertically relative to camera viewport. |
Property Documentation
acceleration : real |
Holds the current acceleration. Specifies the rate at which the camera linear speed increases when a key is held. If the acceleration is negative, the linear speed stays constant. Defaults to -1.0.
camera : Camera |
Holds the currently controlled camera.
deceleration : real |
Specifies the rate at which the camera linear speed decreases when a key is released. If the deceleration is negative, the linear speed stays constant. Defaults to -1.0.
linearSpeed : real |
Holds the current linear speed of the camera controller. Linear speed determines the movement speed of the camera.
lookSpeed : real |
Holds the current look speed of the camera controller. The look speed determines the turn rate of the camera pan and tilt.
© 2019 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.