# Make a Ground Rail with Spline

**URL:** <https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343>\
**Category:** Blueprint\
**Tags:** line-trace, charactermovementcom, unreal-engine, Spline, Blueprint, question\
**Created:** [March 13, 2023, 12:25am UTC](https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343 "2023-03-13T00:25:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![PrettyMoobi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PrettyMoobi](https://forums.unrealengine.com/u/PrettyMoobi)\
**Post date:** [March 13, 2023, 12:25am UTC](https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343/1 "2023-03-13T00:25:00Z")

</div>

Hi, its my first time using the Forums and speaking english, so sorry if something is wrong.

So, basically i want to make a Grind Rail, like this example:

[https://www.youtube.com/watch?v=lAjiWXCvyn8](https://www.youtube.com/watch?v=lAjiWXCvyn8)

**I want to use spline to manage the path** and using the **Character Velocity to determine wich way that Character moves** , for example: When the player doesn’t have enough speed to across a ramp, he goes down.

What i need to do this?

---

<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:** [March 13, 2023, 1:57am UTC](https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343/2 "2023-03-13T01:57:15Z")

</div>

> [@PrettyMoobi](#):
>
> What i need to do this?

On the most fundamental level:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/4/d/b4d1f039f2bf75d3f59fc05123eb9a4ce08e5ea8.png)

- check the inclination of the spline with dot product
- accumulate this value - that’s the speed
- use speed to progress through a spline

You’ll need to add friction as this preserves energy as perfectly as frame time allows it. And input. And a gazillion other things that makes it a game. 😇

---

<div class="post-metadata">

**Author:** ![PrettyMoobi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PrettyMoobi](https://forums.unrealengine.com/u/PrettyMoobi)\
**Post date:** [March 13, 2023, 2:21am UTC](https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343/3 "2023-03-13T02:21:41Z")

</div>

Thanks a lot! This will help me get some logic to know where to start thinking.
