How to ride a fast moving actor (train)?

I found this helpful post by @Everynone - but I’m a bit lost on how the platform actor generates velocity in this example?

My train moves along a spline using a timeline/get location at distance along spline/set actor location. When I trace to it, it shows 0 velocity no matter how fast it is moving on screen. I imagine my approach is wrong, can someone point me in the right direction?

When I trace to it, it shows 0 velocity no matter how fast it is moving on screen. I imagine my approach is wrong,

This may have something to do with the way the platform moves. There are too many ways to move things in UE.

If you use Physics or one of the Movement Components, these methods will both generate velocity for the affected component. But if you SetActorLocation or SetWorldLocation of the moving component instead, there will be no velocity. You could calculate it manually, math it out, of course.

My train moves along a spline using a timeline/get location at distance along spline/set actor location. When I trace to it, it shows 0 velocity no matter how fast it is moving on screen. I imagine my approach is wrong, can someone point me in the right direction?

You’d need to calculate velocity manually during the update. Or switch to another movement method as mentioned above.


Apologies for the chaotic updates on this post. It’s one hectic morn!

1 Like

Hah, no worries! Makes perfect sense. Out of curiosity, what method did you use to move the platform in your example?

Judging by what the platform is doing in the animation - the ping-pong forth & back, it’s an InterpToMovement component.

1 Like

Thank you!