Download

Camera Zoom Over targeted location

Hi guys,

How can I zoom in on a specific location where the mouse is pointed at (when looking from a top-down perspective). I would say like in RTS games. Have this simple code for zoom in/out below, but can’t figure out how to implement zoom in/out on a specific location where the cursor is looking at. Your help would be much appreciated.