# How do you calculate real life speed/velocity and distance inside UE4?

**URL:** <https://forums.unrealengine.com/t/how-do-you-calculate-real-life-speed-velocity-and-distance-inside-ue4/466390>\
**Category:** Blueprint\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [June 7, 2020, 9:06pm UTC](https://forums.unrealengine.com/t/how-do-you-calculate-real-life-speed-velocity-and-distance-inside-ue4/466390 "2020-06-07T21:06:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hollivals](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hollivals](https://forums.unrealengine.com/u/hollivals)\
**Post date:** [June 7, 2020, 9:06pm UTC](https://forums.unrealengine.com/t/how-do-you-calculate-real-life-speed-velocity-and-distance-inside-ue4/466390/1 "2020-06-07T21:06:54Z")

</div>

I’m working on a shooter game and intend to import real life values for various guns and set it up in a struct on the main gun BP. How can you convert values such as meters and meters/second into variables? And which variables would be ideal? I’m guessing it will somehow end up as floats.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_882d813f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_882d813f](https://forums.unrealengine.com/u/anonymous_user_882d813f)\
**Post date:** [June 8, 2020, 2:45am UTC](https://forums.unrealengine.com/t/how-do-you-calculate-real-life-speed-velocity-and-distance-inside-ue4/466390/2 "2020-06-08T02:45:45Z")

</div>

1 unit = 1 cm. 100 units - 1 meter. And so on.  
Default speed value is 600 cm/sec which is equal to 21,6 km/h - an average run speed IRL.

Ideal values is the values that you find ideal for your game. Doom guy run with about 60 km/h, however in some games you can’t run at all. So do what you want to do and you’ll be fine.

---

<div class="post-metadata">

**Author:** ![DavidOConnor](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/davidoconnor/32/978533_2.png) [@DavidOConnor](https://forums.unrealengine.com/u/DavidOConnor)\
**Post date:** [June 8, 2020, 3:15am UTC](https://forums.unrealengine.com/t/how-do-you-calculate-real-life-speed-velocity-and-distance-inside-ue4/466390/3 "2020-06-08T03:15:50Z")

</div>

@holivais welcome! @MikhailKuzovkin is right… just to mention that he’s talking about the walk speed values on the Character Movement Component.
