We’re reworking the camera for OK, Dracula. The goal is to frame the entire kick trajectory in view. What we’re really looking for is a bounding box containing the path for the hardest kick you can do.
First, we find a Rect containing the highest, lowest, left-most, and right-most points of the line.
Then, we add some padding around the edges and update the camera to contain the bounding box.
Up next: ensuring the bounding box also includes the lowest ground point, so you’re able to see the entire ground along the entire kick path (see above, where the gulley is clipped).