Been trying to create a basic orbit camera. So far I've managed to get the mouse motion event to turn a camera Gimbal node. Works fine for Horizontal rotations.
However, I can't seem to figure out how I can limit the Vertical Rotations. Ideally I want to limit the rotations between 1 and 89, as not to rotate over the top of the orbit pivot point.
var speed = ev.get_relative()
So I've tried clamping the rotation of the InnerGimbal, however when rotate_x is called it just ignores the clamp. So I'm not sure what to do.