# How do i change my fov based on my momentum (i just started to use unreal engine so it might not understand well)

**URL:** <https://forums.unrealengine.com/t/how-do-i-change-my-fov-based-on-my-momentum-i-just-started-to-use-unreal-engine-so-it-might-not-understand-well/1739137>\
**Category:** Programming & Scripting\
**Tags:** fov, unreal-engine, Blueprint, question\
**Created:** [March 9, 2024, 1:10am UTC](https://forums.unrealengine.com/t/how-do-i-change-my-fov-based-on-my-momentum-i-just-started-to-use-unreal-engine-so-it-might-not-understand-well/1739137 "2024-03-09T01:10:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fartnitegamering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fartnitegamering](https://forums.unrealengine.com/u/Fartnitegamering)\
**Post date:** [March 9, 2024, 1:10am UTC](https://forums.unrealengine.com/t/how-do-i-change-my-fov-based-on-my-momentum-i-just-started-to-use-unreal-engine-so-it-might-not-understand-well/1739137/1 "2024-03-09T01:10:32Z")

</div>

im not sure how to do it and i cant find many non complex explanations

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [March 9, 2024, 2:09am UTC](https://forums.unrealengine.com/t/how-do-i-change-my-fov-based-on-my-momentum-i-just-started-to-use-unreal-engine-so-it-might-not-understand-well/1739137/2 "2024-03-09T02:09:44Z")

</div>

I assume that you have a player character blueprint that has a Camera component in it.  
Inside the character blueprint event graph, drag a line out from the Tick event, and calculate your velocity. Create three variables, “FovMin” and “FovMax” and “SpeedMax” and interpolate between the two Fov values based on your speed and the target max speed. Call SetFov on your camera component with this value.

Because this runs on Tick, it will happen every frame, and thus set the camera FOV based on your player momentum (because momentum is proportional to velocity.)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/4/18452a37840734a9f612839d3e162b32c546629f.jpeg)

---

<div class="post-metadata">

**Author:** ![Fartnitegamering](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fartnitegamering](https://forums.unrealengine.com/u/Fartnitegamering)\
**Post date:** [March 9, 2024, 9:31am UTC](https://forums.unrealengine.com/t/how-do-i-change-my-fov-based-on-my-momentum-i-just-started-to-use-unreal-engine-so-it-might-not-understand-well/1739137/3 "2024-03-09T09:31:30Z")

</div>

Thanks this works great But i was wondering if theres a way to make the fov not bug out when you stand still and jump
