The script can limit the rotation Angle in the X-axis direction, how to limit the rotation Angle in the Y-axis direction?
In the script, you can limit X axis rotation by modifying “pitchAngleMin” and “pitchAngleMax”. How to make a similar restriction on Y axis rotation