Skip to content

Match-Yang/SOrbitCameraController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SOrbitCameraController

A orbir camera controller for Qt3D(QML)

The Qt3D.Extras model provide a camera controller name with OrbitCameraController. But you can not specity which button of mouse for rotation or translation. So I make one. The default action is:

Input Action
Left mouse button While the left mouse button is pressed, mouse movement along x-axis pans the camera around the camera view center and movement along y-axis tilts it around the camera view center.
Right mouse button While the right mouse button is pressed, mouse movement along x-axis moves the camera left and right and movement along y-axis moves it up and down.
Both left and right mouse button While both the left and the right mouse button are pressed, mouse movement along y-axis zooms the camera in and out without changing the view center.

You can change the action by yourself ofcourse.

You can simply put the SOrbitCameraController.qml into you project and use it just like OrbitCameraController. Even the property is same as OrbitCameraController.

screenshot_20181111_001729

About

A orbir camera controller for Qt3D(QML)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages