- Home /
zoom in with orthografic camera with focus on the a specific point
I have an orthographic camera and would like to implement a zoom feature to a specific point. i.e. imagine you have a picture and want to zoom to a specific part of the picture.
i know how to zoom in, the problem is to move the camera to a position that has the desired zone in focus.
How can i do so?
Have you tried http://docs.unity3d.com/Documentation/ScriptReference/Vector3.Lerp.html ? Should be simple enough. An example would be to have a plane/picture.. you'd click on the desired spot (get coordinates via http://docs.unity3d.com/Documentation/ScriptReference/Camera.ScreenPointToRay.html ) calculate how far you'd like the camera to be from the plane so that it doesn't go through the picture/plane and just lerp to that destination assu$$anonymous$$g that the camera is constantly facing the right direction.
Your answer
Follow this Question
Related Questions
flickering lines when zooming fov (both GUI and ortho cameras). 2 Answers
How to make a smash bros-like camera 3 Answers
Dynamic Orthagraphic Camera Zoom 1 Answer
How to zoom in smoothly with orthographic camera? 1 Answer
Orbit Camera Zoom limit 1 Answer