I have a projectile which I fire using the mouse coords as the direction vector which I scale with a velocity vector and add a gravity vector to complete this simple simulation.
I want to scroll the background in some elegant way, so that I can keep the projectile centred in the red (viewport) whilst following it until I can no longer centre it, but watch.
Edit:
When the projectile starts it hitwill be at the groundleft edge so I cannot centre here as there's no room outside the scene, same if the projectile gets to the end of my scene.
How is this situation usually solved?
