# UE4 Mobile - How to get speed of player swipe?

**URL:** <https://forums.unrealengine.com/t/ue4-mobile-how-to-get-speed-of-player-swipe/449581>\
**Category:** World Creation\
**Tags:** swipe, Mobile, Input, unreal-engine, Physics, velocity, UE4, question\
**Created:** [May 25, 2019, 10:55pm UTC](https://forums.unrealengine.com/t/ue4-mobile-how-to-get-speed-of-player-swipe/449581 "2019-05-25T22:55:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AzzaMatta2571](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AzzaMatta2571](https://forums.unrealengine.com/u/AzzaMatta2571)\
**Post date:** [May 25, 2019, 10:55pm UTC](https://forums.unrealengine.com/t/ue4-mobile-how-to-get-speed-of-player-swipe/449581/1 "2019-05-25T22:55:49Z")

</div>

Hello all,

I am trying to get the speed of the players finger swipe, so the faster the player swipes, the faster the ball goes.  
In blueprint if possible.

Any way of doing this?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Zykazyk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zykazyk](https://forums.unrealengine.com/u/Zykazyk)\
**Post date:** [September 4, 2019, 2:03pm UTC](https://forums.unrealengine.com/t/ue4-mobile-how-to-get-speed-of-player-swipe/449581/2 "2019-09-04T14:03:57Z")

</div>

The faster the swipe is the bigger the difference between the (Old\_2 / New\_2) variable.

---

<div class="post-metadata">

**Author:** ![Zykazyk](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zykazyk](https://forums.unrealengine.com/u/Zykazyk)\
**Post date:** [September 4, 2019, 2:04pm UTC](https://forums.unrealengine.com/t/ue4-mobile-how-to-get-speed-of-player-swipe/449581/3 "2019-09-04T14:04:00Z")

</div>

Grab youre input touch state location and set 2 variables with a delay between them. Get the two variables, subtract them from each other. Set a third variable with the difference. The faster the swipe the greater the difference.  
[1]:

 ![286491-2019-09-04-15-14-50-bp-arpawn.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/0/5/c0515850c15c8599d1ef3d9a14a9d768e179922d.png)
