# Parallel Splines

**URL:** <https://forums.unrealengine.com/t/parallel-splines/93011>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 26, 2017, 4:26pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011 "2017-05-26T16:26:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![peterdian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peterdian](https://forums.unrealengine.com/u/peterdian)\
**Post date:** [May 26, 2017, 4:26pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/1 "2017-05-26T16:26:50Z")

</div>

I’ve been trying to create parallel spline in blueprint, I was able to create parallel spline points, but don’t know how to correctly set the tangents, because spline sections between points are not parallel (white and pink line in picture 1) to the root spline. How can I fix it, please? Thank you for your help;)

---

<div class="post-metadata">

**Author:** ![daveREspawn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daveREspawn](https://forums.unrealengine.com/u/daveREspawn)\
**Post date:** [May 26, 2017, 5:27pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/2 "2017-05-26T17:27:05Z")

</div>

It does work, it’s just Unreal is weird about it.  
If you set the spline point or the tangent via Blueprint, you’ll need to restart the editor for it to work correctly. I just tested, and it’s still true in 4.16

So in the attached example I have two splines in an actor, on construction SplineA copies the position and tangent info from each point to the points on SplineB. When I first created the actor, it doesn’t work, but restart and it works perfectly, you can move the points on A in real time and have them update on B.  
Try it out for yourself, it’s a pain, but it can be worked around.

Hope that helps,  
Dave

---

<div class="post-metadata">

**Author:** ![peterdian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peterdian](https://forums.unrealengine.com/u/peterdian)\
**Post date:** [May 26, 2017, 6:25pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/3 "2017-05-26T18:25:54Z")

</div>

Thank you very much Dave, for example and help. Unfortunately, it does not work for me as I need. Excuse me, but English is not my first language, so maybe I’ve explained something incorrectly. What I would like to achieve is something like green lines in this picture. I would like to create spline with offset so that I can use it to create spline mesh (crash barriers, walls, railings, etc.). In my first post, white spline is road, and pink spline is for crash barriers.

Thank you again, appreciate it.

---

<div class="post-metadata">

**Author:** ![daveREspawn](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@daveREspawn](https://forums.unrealengine.com/u/daveREspawn)\
**Post date:** [May 26, 2017, 7:44pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/4 "2017-05-26T19:44:20Z")

</div>

No problem, that makes sense.  
In my example I’m copying the tangents and locations exactly, so to get the green lines as you want, you’d need to manually generate the locations and tangents.

---

<div class="post-metadata">

**Author:** ![peterdian](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@peterdian](https://forums.unrealengine.com/u/peterdian)\
**Post date:** [May 26, 2017, 7:52pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/5 "2017-05-26T19:52:56Z")

</div>

Yes, that’s what I’m trying to do. I the blueprint in the first post, I’ve managed to calculate correct position of points, the only thing left are tangents. Currently, the tangent of “Spline” is connected directly to “Spline1”, but I guess I need to calculate the correct tangent according to the offset. I’ve found something about calculating normal of tangent, but I’ll be honest, this kind of math is difficult for me to understand - answer from Joltz at link: [https://www.reddit.com/r/unrealengine/comments/529wa8/question\_spline\_location\_offset/](https://www.reddit.com/r/unrealengine/comments/529wa8/question_spline_location_offset/)

---

<div class="post-metadata">

**Author:** ![\_DySands](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/_dysands/32/779237_2.png) [@\_DySands](https://forums.unrealengine.com/u/_DySands)\
**Post date:** [April 6, 2018, 4:01am UTC](https://forums.unrealengine.com/t/parallel-splines/93011/6 "2018-04-06T04:01:03Z")

</div>

So uhm i know this is an old thread but I’ve spend several hours trying to get a normalized tangent without any success, my mathematical skills are in my opinion low but i am slowly learning and catching back up, I think I understand the equation but haven’t been able to apply it properly, any help would be so much appreciated!

---

<div class="post-metadata">

**Author:** ![fafmagic](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fafmagic](https://forums.unrealengine.com/u/fafmagic)\
**Post date:** [July 12, 2018, 8:00pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/7 "2018-07-12T20:00:26Z")

</div>

You’ve probably solved this issue by now, bit if not, this post explains the math… it’s quite simple:

[https://answers.unrealengine.com/questions/319813/parallel-splines.html](https://answers.unrealengine.com/questions/319813/parallel-splines.html)

---

<div class="post-metadata">

**Author:** ![Elijah-Neverdie](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elijah-Neverdie](https://forums.unrealengine.com/u/Elijah-Neverdie)\
**Post date:** [September 29, 2018, 3:26pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/8 "2018-09-29T15:26:15Z")

</div>

> [@fafmagic](#):
>
> You’ve probably solved this issue by now, bit if not, this post explains the math… it’s quite simple:
> 
> [Parallel Splines - Blueprint - Epic Developer Community Forums](https://answers.unrealengine.com/questions/319813/parallel-splines.html)

That’s not parallel. Not same distance everywhere

---

<div class="post-metadata">

**Author:** ![Manoel.Neto](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/manoel.neto/32/1210013_2.png) [@Manoel.Neto](https://forums.unrealengine.com/u/Manoel.Neto)\
**Post date:** [September 29, 2018, 4:06pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/9 "2018-09-29T16:06:50Z")

</div>

Instead of building another spline, just sample the transform from the “center” spline and apply it to a “right” or “left” vector at some distance from the center.

---

<div class="post-metadata">

**Author:** ![Yashinski](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yashinski](https://forums.unrealengine.com/u/Yashinski)\
**Post date:** [December 22, 2019, 11:54am UTC](https://forums.unrealengine.com/t/parallel-splines/93011/10 "2019-12-22T11:54:59Z")

</div>

Hi guys, I know this is an old post but I have been all over this problem for a week and a half now and could not find a way to implement quadratic Bezier curve extrusion solution.  
Do any of you have the solution just laying around by any chance and willing to share it?

In addition, I’m adding some screenshots of my implementation and result.

 ![control.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/a/a/aa260120265058421213f8386056092194a08f04.png)  
The extruded control polygon looks and behaves fine, though the actual curve doesn’t seem to follow its shape.

Here’s how I draw all this colorful stuff:  
first I’m setting a curve manually

 ![1.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/a/3ad2b2b1b6c9cb2343b6f4d6681810a1a5ec81da.png)  
Then It’s variable setting time  
 ![3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/0/20d12303fe145e6b26a6f4fb73f7d1f70c40d7d3.png)  
Then I do the math:  
 ![3.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/2/0/20d12303fe145e6b26a6f4fb73f7d1f70c40d7d3.png)  
Here’s the FindIntersectionPoint function:  
 ![intersectionpointfun.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/7/b70680ae326a583c5ef8379c4ec86b1ddda42b71.png)  
And the last step is to set the new points correspondingly:  
 ![4.PNG](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/4/54809995795e1ca16726a050b01f39e06b715789.png)  
Lastly, Here’s a variable map so you’ll understand the names :  
 ![map.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/d/cda20eabb543ea7b6cd5f35016b3c9222ebacf14.png)

Thanks in advance ❤

---

<div class="post-metadata">

**Author:** ![GabrielJeffrey](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GabrielJeffrey](https://forums.unrealengine.com/u/GabrielJeffrey)\
**Post date:** [February 18, 2022, 4:29pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/11 "2022-02-18T16:29:28Z")

</div>

I was working on a spline system that allows me to spawn multiple splines with an additional offset  
It’s been quite a while since the last reply on this thread, but ill leave this solution for any newcomers.

This is how I achieved the desired result :  
Get the tanget and location at the spline distance or spline point.  
in my case, I got the “tanget at a distance along spline” as well as the “location at distance along the spline” or spline point, all of the vectors were ofcourse pulled from the **Main Spline**

then get rotationfromxvector from the tanget

then get the right vector of the obtained rotation

multiply the right vector by the offset you wish to have between splines in my case i called it distance

lastly, add the result of multiplication by the location from the spline point or distance

the final vector will be the location of your **generated** spline.

code and result :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/3/e/03ef0da4a2511db64718088ee99e7a59aeaa1afb.jpeg)

---

<div class="post-metadata">

**Author:** ![Kusane2000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kusane2000](https://forums.unrealengine.com/u/Kusane2000)\
**Post date:** [February 8, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/12 "2024-02-08T16:00:01Z")

</div>

I found this post by chance. I was trying to do the same exercise of creating parallel splines. Thank you very much for the tip. It works perfectly!!! Thanks again and regards.

---

<div class="post-metadata">

**Author:** ![ArghCrazy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArghCrazy](https://forums.unrealengine.com/u/ArghCrazy)\
**Post date:** [September 1, 2026, 9:03pm UTC](https://forums.unrealengine.com/t/parallel-splines/93011/13 "2026-09-01T21:03:47Z")

</div>

Another solution i found was to just simply resample the spline with 0 subdivisions. This way does not give you perfect parrallels but it does give you flush ends.

I know this is going to sound weird but

1. Get spline data
2. Sample spline (any mode)
3. Create Spline
4. Sample Spline (subdivision with 0 per segment)
5. now run multiple outputs ( 1 for each spline)
6. on each output use a Transform Points node and offset the Y by the amount desired.
7. create spline
8. spawn meshes or whatever your final steps are.

As weird as it is. steps 3 and 4 are 100% necessary for some reason. even if they seem redundant.

its not 100% perfect parrallel but its pretty close

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/e/4ee22b0e9ee03835e6ae255e681767bc4a8a2beb.png)

anothing thing i like to do if i’m using distance mode on the first sample.  
branch a 2nd sample that uses subdivisions  
filter out the last point and  
merge it into the main point data  
this will fill the gap at the end of the spline when using Distance mode.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48d503fb9c5f5fa7290045afabf098ba9b5cc38.png)
