Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to limit the tilt angle to 180 deg in QML?
lakshmanGiri last edited by
I have rendered a 3D model and have used orbitcontrollercamera to rotate the object. With the help of this reference https://github.com/Match-Yang/SOrbitCameraController, I was able to accomplish the rotation. The rotation (pan) in X-axis is rotating in 360-degree view which is fine. But, the rotation (tilt) in Y-axis is also rotating in 360 degrees which I wanted to limit to 180 degrees.
How to accomplish this function?. Thanks in advance.
You don't. Write your own camera controller and handle the transformation yourself.