Perhaps a bit of a tricky math question here...
My camera has a current position and target, and a destination position and target. I have a "process" method, which moves the position a little closer to the destination every time it's run.
This produces a smooth camera movement from point a to b... However, I want to give the user more of the scenery - as sometimes it's just looking at a wall. I plan to do this by keeping the camera target path the same, but bending the camera position path outward. Sort of like zooming out, away from the target, then back in again once the destination is reached.
I have had several attempts at this, which include adding delta values to the Z and X axis' up to 50% of the way, then subtracting the remainder, but this produces unpredictable results.
I have also tried introducing "gravity" which pulls the camera toward a position on the terrain, but this doesnt seem too stable either.
Way points was also another... but this seemed very jerky, and also unpredictable... and I'd like the path to be nice and smooth.
Has anybody had experience with doing this sort of thing Perhaps the use of geometry could be involved (I have no idea how though!).