USplineComponent offset

Hi,

Is it possible to copy a spline and then add a offset to it, like the image below?

curve2pxoffset.png

It is indeed, a friend and I are working on exactly that for a not yet disclosed project :slight_smile:

How quickly do you need that?

How cool to know! Actualy its the most important thing i need for now. Do u use a certain algorithm i could look at?

Shouldn’t be too hard, just copy the spline points into an array, add your offset to each points then create a new spline, and give it those offset points. :slight_smile:

The problem is that the new spline often needs more or less points, depending on the offset. I have been looking for algorithms but i cant find any good example code.