Creating spline duplicates with offsets via Blueprint

Hello :wave:
I ran into a weird issue which I only found very old conversations with no real solution:
We are trying to make multiple duplicates of one “master spline” in construction script with the ability to offset them by a given amount.

I got it working up to one point where the spline decides his offset is flipped onto the other side of the master spline. I am simply adding the offset at each point during the creation of the duplicates. :thinking:

I already fiddled around with up vectors but instead of a mess I wasn’t able to fix the issue. It seems so simple though? :sweat_smile:

I appreciate every hint in the right direction!

Here is how it looks in-engine, the purple ones are the spline duplicates:

For anybody encountering the issue here is a working solution:
What you want to do is rotate your offset at each spline point by the spline rotation and then add this “fixed” Vector onto your spline point location.

How it looks in blueprint:

2 Likes