# Calculate velocity between two points

**URL:** <https://forums.unrealengine.com/t/calculate-velocity-between-two-points/1238458>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 24, 2023, 10:54am UTC](https://forums.unrealengine.com/t/calculate-velocity-between-two-points/1238458 "2023-07-24T10:54:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey547](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergey547](https://forums.unrealengine.com/u/Sergey547)\
**Post date:** [July 24, 2023, 10:54am UTC](https://forums.unrealengine.com/t/calculate-velocity-between-two-points/1238458/1 "2023-07-24T10:54:20Z")

</div>

Hi, I need help!!! How to calculate the exact velocity with the arc between a start point and the end point?  
I’ve got a third-person character, when he goes to a special area (jump pad), he must jump to the exact point.

---

<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:** [July 24, 2023, 11:01am UTC](https://forums.unrealengine.com/t/calculate-velocity-between-two-points/1238458/2 "2023-07-24T11:01:35Z")

</div>

> when he goes to a special area (jump pad), he must jump to the exact point.

Would this work?

> [@Launch character to a target location](https://forums.unrealengine.com/t/launch-character-to-a-target-location/479050/4):
>
> I’ve added a couple of bells & whistles, some much needed control, limiters to keep things in check and variables to parametrise it: [[Image from Gyazo]](https://gyazo.com/b9d49c7779bc499909bee261092ebd53) The general idea: we generate a spline between us and the click location with the mid point elevated we use a timeline to project a point along the spline over the timeline duration we adjust player velocity so it chases that point closely In short, it’s a glorified rubberband that works surprisingly well. LMB: set landing location Mouse S…

This is all fake, with lots of control and nothing to calculate. You can land wherever you desire. I’d build a jump-pad actor with a spline and manually place points where needed.

Technically you could arrive at reasonable results using trial & error launch but that’d get tedious rather fast.

* * *

For manual and more physically accurate jump, I’d look into leveraging this node:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/a/5/aa546daaed42298927f7e9775a88c7cbbd7ce921.png)

Or work the other way round with:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/5/955326c809733904725ff5413c7f5b6f164b9b26.png)

This would take a lot of guesswork out of the design, you get points and can then (optionally) turn them into a spline to glide along. Think of this option as of a visual tool that helps with obtaining data you can then punch into the character launch node.

* * *

Also, there’s navmesh:

> **[Content Examples Sample Project for Unreal Engine | Unreal Engine 5.7...](https://dev.epicgames.com/documentation/en-us/unreal-engine/navmesh-content-examples?application_version=4.27)**
>
> Sample project that demonstrates specific concepts and techniques to use in Unreal Engine.

Namely:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/e/50e221e3685c8e2cf4913e5367e9a9fd68d7fa6e.jpeg "Unreal Engine 4 Tutorial // NavLinkProxy ( to Jump between NavMesh gaps )") ](https://www.youtube.com/watch?v=6XZV9_fq2Tw)

---

<div class="post-metadata">

**Author:** ![Sergey547](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sergey547](https://forums.unrealengine.com/u/Sergey547)\
**Post date:** [July 24, 2023, 2:57pm UTC](https://forums.unrealengine.com/t/calculate-velocity-between-two-points/1238458/3 "2023-07-24T14:57:52Z")

</div>

> [@Launch character to a target location](https://forums.unrealengine.com/t/launch-character-to-a-target-location/479050/4):
>
> I’ve added a couple of bells & whistles, some much needed control, limiters to keep things in check and variables to parametrise it: [[Image from Gyazo]](https://gyazo.com/b9d49c7779bc499909bee261092ebd53) The general idea: we generate a spline between us and the click location with the mid point elevated we use a timeline to project a point along the spline over the timeline duration we adjust player velocity so it chases that point closely In short, it’s a glorified rubberband that works surprisingly well. LMB: set landing location Mouse S…

Thank you a lot!!! 👍
