A small prefab I put together for the ChoroPhronisis group. They wanted a simple camera they could drop into their scenes and just let run through some basic camera motions while using OBS to record the screen.
It’s a pretty straightforward script, using a coroutine to run through a sequence of panning the camera, zooming it and rotating it around a point. I added in options for doing these motions while tracking a specific target or just straight copying the rotation of the locators.
Something I hadn’t delved into before that I got some help from Zac Zidick figuring out was using Animation Curves to create smooth acceleration and deceleration within the movement. Essentially, rather than just moving them based on time on it’s own, the time was used to find an evaluated value on the given Animation Curve. While my colleague used a speed value for his animation, I made mine based on a time to complete the motion. Curiously enough, these gave about the same result as it seems the way the speed and time related to the Animation Curve was the same, just in one case it was about multiplying the speed while the other was about dividing the time. With speed being a general movement over time value, this does make sense, just something I never really considered.