I just wanna clamp my camera's Y rotation to -45 and 60.
I looked in the FloatClamp script and I don't understand why it exhibits this behavior. It just uses Mathf.Clamp. Doesn't Mathf.Clamp handle negative numbers?
So I installed Ecosystem (which was relatively quick and painless, thanks for that,) and downloaded "GetSignedAngletoTarget," but now I have no idea how to use it. I tried rotating my camera, then getting the X axis (Direction means Axis, right?) and storing it in a temp variable, then passing that to the FloatClamp action, but that always results in 0.
I have no idea how this script works or what it's supposed to do, or even how this is supposed to solve the OP's question. Which is the same as my question: How do I clamp my camera's rotation?