Motion with constant speed along a spline with a variable length in real time

This is the question of how to do it differently so that it works as planned…