Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Rotate the camera in qt3d
thnx last edited by
Hi, I want to rotate the camera around an object with buttons in any axis to create a 3D navigator: Up, Right, Down, Left. So, I should control the camera via mouse and buttons.
I tried with some calcs with Math.sin and Math.cos, but... it doesn't work.
jiangcaiyang last edited by
Well, in Qt3D, a class named "QGLCamera" is available, you can use pan(), tilt() and rotate() method to rotate camera by different axis.