I am working on a game where you can zoom in and out with the camera (which is linked to a character controller) using the mouse wheel. Would it be possible to reset the camera to the starting position by clicking the middle mouse button (i.e. undo the motion)? This is to make it more convenient when players zoom too far in or out.
Simple answer is that LODs and sometimes OOP shaders relies on the camera’s origin location.
If you transform the camera’s view without transforming itself physically, you might well break several carefully crafted mechanics that you may or may not have implemented.
Note: I am not sure this fact still applies to frustum-culling, object-culling, and physics-culling.
I tried this but for some reason when I click the middle mouse button - the camera ends up far away from the character controller. I thought this may be due to the values but changing them seemed to have no effect. Any thoughts? Thanks.
I have a feeling that it’s at least allowable to move the camera in such a scenario, if there’s no other issues than LOD or culling could be a problem. When I zoom out the camera far behind the player character in a Skyrim-like 3rd person camera view, for example, I certainly want objects closer to the camera - not to the character - to have full LOD/physics details.
Maybe it’s something that can be chosen depending on the circumstances, I suppose. Thanks for the explanation!