IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)

QFirstPersonCameraController Class

The QFirstPersonCameraController class allows controlling the scene camera from the first person perspective.

This class was introduced in Qt 5.7.

Article lu   fois.

L'auteur

Liens sociaux

Viadeo Twitter Facebook Share on Google+   

QFirstPersonCameraController Class

  • Header: QFirstPersonCameraController

  • Since: Qt 5.7

  • CMake:

    find_package(Qt6 REQUIRED COMPONENTS 3dextras)

    target_link_libraries(mytarget PRIVATE Qt6::3dextras)

  • qmake: QT += 3dextras

  • Inherits: Qt3DExtras::QAbstractCameraController

  • Group: QFirstPersonCameraController is part of qt3d-extras-cameracontrollers

Detailed Description

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.

Mouse scroll wheel

Zooms the camera in and out without changing the view center.

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.

Escape

Moves the camera so that entire scene is visible in the camera viewport.

Vous avez aimé ce tutoriel ? Alors partagez-le en cliquant sur les boutons suivants : Viadeo Twitter Facebook Share on Google+