Download

USplineComponent offset

Hi,

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

3e9e9c4b6374f761403660c06c4fc58308c2f7bd.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.