Spline help

Hey,

I’m trying to make an actor loop around a spline but it seems as if the spline’s top and bottom parts both return 0 as rotation, how could i make my actor rotate around it properly?

Here is my current blueprint

If splines are not an option, how could i recreate a similar behavior for my 2D enemy?

Thanks

this should work

Ah in my example i used X and Y , to avoid spline normal flipping at each 90° , here is a solution :

And to make your movement independent from frame rate you should multiply by DeltaSecond ( instead of x units per frame, you get x unit per second)

By the way this is 2D, I’m working with X and Z and the rotation in this case should be Y only

This worked perfectly, i had tried something very similar but with make rot from X only, thank you very much!

Hi, was just looking for the same thing. So is the SetClosedLoop good at anything in this case? I tried it but the distance variable goes on at the end.