Greetings; I am confronted with a problem that I am unsure of how to solve. I have an orthographic camera with a Y transform of 260 overlooking the scene. It has a rotation of X 25 and Y 50; “zooming in and out” is handled by changing the camera’s projection size. This gives the project an isometric effect; moving up and down and zooming in and out works perfectly. However, a feature I’d like to add is the ability to click on an object in the viewport and move the camera accordingly so that the object is centered in the viewport. Getting the position of the object in world space and comparing it to the camera’s is seemingly out of the question due to how the camera is set up. I know that I can get the object’s viewport as opposed to its world position, but I’m unsure of what to do with it as far as accomplishing my goal is concerned. Any advice would be greatly appreciated.
Edit: I need the camera to slowly move to the target as opposed to snapping to it.