- Home /
edge of map and zooming problem (orthographic)
Hey, I´ve got a problem with zooming in a map with orthographic projection. When my Camera is on the edge of the map the camera stops, thats working. But how can move a camera away from the edge when zooming out?
Answer by Owen-Reynolds · May 24, 2013 at 07:08 PM
Strictly speaking, zooming out an Othro cam does nothing (since it ignores depth,) but I assume you are increasing the Size value, to make it wider?
Just change the edge limit. If the world ends at 100 and the cam is 10 wide, limit is x=90. As you "zoom" back to 15 wide, edge limit is 85. Just keep limits as Left+Size and Right-Size. Then make sure the zooming part of the code applies the limits (in case you only check limits when they move the cam.)
Your answer
Follow this Question
Related Questions
Camera to centre on player, but never exceed "map" bounds 0 Answers
Orthographic Camera Size? 3 Answers
Dynamic shadows in orthographic camera. 2 Answers
Implementing Camera bounds proportionally to its ortographic size 0 Answers
How to make WorldToScreenPoint work with an orthographic camera? 0 Answers