# Actor moving along spline changes speed when it hits a different spline point. This is driving me nuts- please help!

**URL:** <https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint\
**Created:** [November 24, 2022, 10:48pm UTC](https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822 "2022-11-24T22:48:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![NullSignature](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NullSignature](https://forums.unrealengine.com/u/NullSignature)\
**Post date:** [November 24, 2022, 10:48pm UTC](https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822/1 "2022-11-24T22:48:46Z")

</div>

Video: [Unreal Engine - inconsistent actor movement speed along spline - YouTube](https://www.youtube.com/watch?v=V4W_NWP6cFQ)

Blueprint - method 1: [Move actor along spline posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/_856g8mz/)

Blueprint - method 2: [Move actor along spline - timeline method posted by anonymous | blueprintUE | PasteBin For Unreal Engine](https://blueprintue.com/blueprint/596j94h9/)

Using UE5. I am procedurally generating spline points for a train track and trying to move an object along that track. For some reason, the actor’s movement speed seems to change at two points:

1. At the spline point immediately after a curve

2. A ‘jump’ forward on the second spline point after a curve

It also may speed up during the curve? It’s hard to tell.

I can’t figure this out and it’s driving me nuts. I’ve tried both the distance and timeline methods of movement and both have the exact same behavior. I can’t think the manner of how I’m generating the spline points would make a difference in this because the movement is based on the length of the spline.

Any ideas? I’m open to literally anything at this point, I have spent too much time on this.

---

<div class="post-metadata">

**Author:** ![NullSignature](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@NullSignature](https://forums.unrealengine.com/u/NullSignature)\
**Post date:** [November 25, 2022, 2:24am UTC](https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822/2 "2022-11-25T02:24:27Z")

</div>

I found a way around this and wanted to document it for any future readers.

So I couldn’t directly solve this issue. [I think it has something to do with how unreal engine determines the lengths of spline curves/sections.](https://medium.com/@ommand/movement-along-the-curve-with-constant-speed-4fa383941507)

What I wound up doing was traversing the procedurally generated spline and dropping a new spline point into a different spline after a certain distance. This new spline was then basically a higher resolution replica in which every segment is approximately the same length. There is no noticeable speed changes when moving an actor along it.

> **[Traverse spline and make second spline with more points posted by anonymous |...](https://blueprintue.com/blueprint/1b7-6dgn/)**
>
> No description provided

---

<div class="post-metadata">

**Author:** ![pezzott1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/pezzott1/32/1215068_2.png) [@pezzott1](https://forums.unrealengine.com/u/pezzott1)\
**Post date:** [November 25, 2022, 7:36am UTC](https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822/3 "2022-11-25T07:36:36Z")

</div>

In case it might help, try this for constant speed along spline:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/e/e/cee116e30a73674b4aefc4a97aa2ac6aa333b166.png)  
 ![AlongSpline](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/0/3/b032608d40ec4da24d79ca33b58cc7dd6a9fd2be.gif)

---

<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:** [November 25, 2022, 7:57am UTC](https://forums.unrealengine.com/t/actor-moving-along-spline-changes-speed-when-it-hits-a-different-spline-point-this-is-driving-me-nuts-please-help/714822/4 "2022-11-25T07:57:31Z")

</div>

Example of Spline Duration + Constant Velocity - it’s just a tickbox:

> [@Actors on spline with irregular spacing](https://forums.unrealengine.com/t/actors-on-spline-with-irregular-spacing/677071/4):
>
> Play with distribution using spline duration instead: [image] The results without: And with Constant Velocity: Perhaps that’s enough.
