Download

Spline movement problem

I am working on an “on-rails” project for my class.

I have my character starting on the closed loop spline and moving properly along the spline indefinitely as intended , however, when watching the blueprint during execution it is constantly updating Spline Distance to 0.

If I take out the branch and connect “set rotation along spline” directly to “increment distance on spline” then it properly increments Spline Distance, but it stops moving when completing a single revolution which not what I want.

I know I have wired something incorrectly but I can not figure it out. Here is the rest of that code in case it is relevant:

Any help is greatly appreciated.