Allow character to move an exact distance?

Pretty complicated, but if i see that correctly you set the traveled distance and the last position only on axis input, how about setting that each tick (Every frame), i think that would be much more accurate. I can only guess ehre without seeing the complete project, but i think the difference is maybe from physics (acceleration of the pawn, mass, etc).