# Evenly Distribute Spline Meshes Along Spline

**URL:** <https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [April 18, 2018, 4:06pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981 "2018-04-18T16:06:09Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![Nameless\_Voice](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nameless_voice/32/747563_2.png) [@Nameless\_Voice](https://forums.unrealengine.com/u/Nameless_Voice)\
**Post date:** [August 11, 2018, 9:55pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/21 "2018-08-11T21:55:25Z")

</div>

Thanks a lot for this workaround.  
In my case, I had a macro that stretched a splinemesh between two lengths along the spline (taking in a start and end length parameter), and so I simply normalised and then multiplied by the end length minus the start length. It works great.

I had previously raised a bug about the how the Get Tangent At Distance Along Spline feature is bugged here: [Unreal Engine Issues and Bug Tracker (UE-61908)](https://issues.unrealengine.com/issue/UE-61908) - hopefully that will get fixed soon, and we won’t need to rely on this workaround any more.

---

<div class="post-metadata">

**Author:** ![joshbridger](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/joshbridger/32/909692_2.png) [@joshbridger](https://forums.unrealengine.com/u/joshbridger)\
**Post date:** [January 15, 2019, 4:50pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/22 "2019-01-15T16:50:24Z")

</div>

This system works so well! A few things that I need to adjust for my use. I’ve got a series of bottles on my spline and I want to space them a bit from each other rather than just having them one after the other touching one another. Is there a way to add some spacing between each mesh?

Also, is there any way that you can make these animate?

Thanks!!

---

<div class="post-metadata">

**Author:** ![Nameless\_Voice](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nameless_voice/32/747563_2.png) [@Nameless\_Voice](https://forums.unrealengine.com/u/Nameless_Voice)\
**Post date:** [January 15, 2019, 8:56pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/23 "2019-01-15T20:56:55Z")

</div>

You are already working with distances along the spline, so you can easily perform any extra maths you need before using it.

---

<div class="post-metadata">

**Author:** ![Monu29](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Monu29](https://forums.unrealengine.com/u/Monu29)\
**Post date:** [February 15, 2019, 9:07pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/24 "2019-02-15T21:07:17Z")

</div>

@Gavin.Kistner, this is a really good explanation of the method used for distributing mesh along a spline.  
Saved me a lot of time and headache.

cheers

---

<div class="post-metadata">

**Author:** ![gstyczen](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gstyczen](https://forums.unrealengine.com/u/gstyczen)\
**Post date:** [March 23, 2019, 8:12pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/25 "2019-03-23T20:12:19Z")

</div>

Thanks! I think I got it to work now. For C++ users it goes something like:

> FVector startTan =  
> spline-\>GetTangentAtDistanceAlongSpline(startDist,ESplineCoordinateSpace::Local);  
> FVector endTan =  
> spline-\>GetTangentAtDistanceAlongSpline(endDist,ESplineCoordinateSpace::Local);
> 
> if (startTan.Size() \>= pieceLength) {  
> startTan.Normalize(); startTan \*=  
> pieceLength; }
> 
> if (endTan.Size() \>= pieceLength) {  
> endTan.Normalize(); endTan  
> \*=pieceLength; }

---

<div class="post-metadata">

**Author:** ![ridley075](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ridley075](https://forums.unrealengine.com/u/ridley075)\
**Post date:** [May 10, 2021, 10:16pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/26 "2021-05-10T22:16:36Z")

</div>

Just want to say, still to this day, this post has come extremely in handy. Wouldnt have solved this issue myself. Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Nameless\_Voice](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nameless_voice/32/747563_2.png) [@Nameless\_Voice](https://forums.unrealengine.com/u/Nameless_Voice)\
**Post date:** [August 19, 2021, 12:49pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/27 "2021-08-19T12:49:57Z")

</div>

Well, Epic ignored the bug for three years, and have now just randomly marked it as Won’t Fix without a word.

Why do I even bother raising bugs? They don’t care.

---

<div class="post-metadata">

**Author:** ![\_sasmety](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_sasmety/32/626866_2.png) [@\_sasmety](https://forums.unrealengine.com/u/_sasmety)\
**Post date:** [July 30, 2023, 12:40pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/28 "2023-07-30T12:40:38Z")

</div>

Works perfectly. Thanks.

---

<div class="post-metadata">

**Author:** ![FinesseAndStyle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinesseAndStyle](https://forums.unrealengine.com/u/FinesseAndStyle)\
**Post date:** [September 29, 2025, 3:27pm UTC](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981/29 "2025-09-29T15:27:20Z")

</div>

You have no idea how much you saved my project. I was struggling with dynamically generating splines and I’ve been having inconsistent spacing when using Distance Along Spline due to using a different method for generating curved paths.

Thank you!

[Previous page](https://forums.unrealengine.com/t/evenly-distribute-spline-meshes-along-spline/422981.md?page=1)
