# How to change Zoom speed based on zoom distance

**URL:** <https://forums.unrealengine.com/t/how-to-change-zoom-speed-based-on-zoom-distance/481458>\
**Category:** Cinematics & Media\
**Tags:** rts, unreal-engine, question\
**Created:** [April 6, 2021, 6:43am UTC](https://forums.unrealengine.com/t/how-to-change-zoom-speed-based-on-zoom-distance/481458 "2021-04-06T06:43:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evertoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Evertoo](https://forums.unrealengine.com/u/Evertoo)\
**Post date:** [April 6, 2021, 6:43am UTC](https://forums.unrealengine.com/t/how-to-change-zoom-speed-based-on-zoom-distance/481458/1 "2021-04-06T06:43:35Z")

</div>

Hi,  
Im working on a strategy project, where the zoom distance is quiete big  
I’d like to achieve a system, where the zoom speed is changeing depending on how far the player is zoomed out or in  
The further the camera is, the faster its zooming in, and the closer it is, slower the zoomspeed is  
I have the camera atached to a spring arm, and the scroll in/out working fine, but i cant get the speed working

Thanks for any advice!

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [April 6, 2021, 11:03am UTC](https://forums.unrealengine.com/t/how-to-change-zoom-speed-based-on-zoom-distance/481458/2 "2021-04-06T11:03:50Z")

</div>

Many ways to do it. The most basic implementation could look like so:

 ![334923-screenshot-1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/a/afa6981958f541ae933c9e79e941b2eaa4e4935b.png)

Above, the zoom step depends on the length of the arm.

- another way is to sample a curve, handy if you need a less linear speed modifier

---

<div class="post-metadata">

**Author:** ![Evertoo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Evertoo](https://forums.unrealengine.com/u/Evertoo)\
**Post date:** [April 6, 2021, 6:16pm UTC](https://forums.unrealengine.com/t/how-to-change-zoom-speed-based-on-zoom-distance/481458/3 "2021-04-06T18:16:26Z")

</div>

Thanks for the help, it works perfectly!
