Is there any simple way to clamp RotateAround function?
cameraCharacter.transform.RotateAround (transform.position, cameraCharacter.transform.right, Time.deltaTime * 100 * Input.GetAxis ("Mouse Y"));
I have this line. I would like to clamp it so it can’t go lower and greater than specific values.
For anyone that finds this in the future here are some links on how to clamp it for the horizontal direction:
And here are some for the vertical direction: