How can I loop Spline Component?

Zielak
Fri, 19 Sep 2014 21:54:28 +0000
Audio

I’m making a racing prototype, where vehicles follow the spline component like the train on rails.

By “looping” I mean seamlessly merge first and last points. I was hoping to see something like “Loop spline” checkbox in component settings, so the spline wouldn’t have any gap between first and last points.

The only solution I came up with should work in theory but fails. In Construction script, I’m using Set World Location at Spline Point to set the last point’s position to be the same as the first. In effect, the last point never snaps to the right location and moving it around feels like it isn’t under my control.

10 posts - 7 participants