I’m trying to get a camera in my scene to smoothly rotate down (something like 10 degrees) and then back up to its original position (like a security camera).
I think Mathf.Lerp is probably the way to go, but I can’t figure how to stop at the determined place and then get back up.
It should only do this when specifically activated (by a keypress or another function). And before rotating, a Boolean value should be turned true and when finished, it should turn false (this would allow my other functions to notice the rotation is happening and not interfere with it).