Hi WolRon,
That's a cool idea. A sort of "binary search" backwards and forwards until there is no obstacle between cam and avatar and so best possible distance is determined quite quickly. Is this what you meant?
Conceptually I think I understand what you mean by "line pick". In coding terms I don't have a clue how to go about this and determining if there is something (or what is) obscuring the target (avatar). Any clues or pointers appreciated.
Edit:
Actually, detecting if the camera collides with the terrain and shortening the distance until it doesn't might be the shot?
So if the avatar zips over the brow of a hill, or is standing on a ledge and turns, the camera zooms in.
That's a cool idea. A sort of "binary search" backwards and forwards until there is no obstacle between cam and avatar and so best possible distance is determined quite quickly. Is this what you meant?
Conceptually I think I understand what you mean by "line pick". In coding terms I don't have a clue how to go about this and determining if there is something (or what is) obscuring the target (avatar). Any clues or pointers appreciated.
Edit:
Actually, detecting if the camera collides with the terrain and shortening the distance until it doesn't might be the shot?
So if the avatar zips over the brow of a hill, or is standing on a ledge and turns, the camera zooms in.