Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Keeping scroll wheel zoom, on a 45 degree angle, centered on player

$
0
0
I've got a pretty nice scroll to zoom script on my main camera. It is 90 degree's top down, follows the player and zooms in/out with mouse wheel. It has some clamping for min/max distance and smoothing on the position change.

What I want to do is change the camera angle to 45 degree's instead of 90. Simply changing the rotation variable to 45 set's the camera angle, but the player is no longer centered on screen. Further to that, the player's position relative to the screen center moves...

Keeping scroll wheel zoom, on a 45 degree angle, centered on player

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>