# 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:** 1\
**Showing post:** 2

<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. 😇

---

_[View the full topic](https://forums.unrealengine.com/t/make-a-ground-rail-with-spline/789343)._
