Error in getting world coordinates

Hello everyone
I want to make it so that as the player moves away, the mesh is added to the previous one, but there was a problem with getting the coordinates of the StaticMeshComponent.


The whole problem appears in Event Tick


When this actor appears, I just need to move away a little and all the coordinates change to large ones. For debugging, I added a print and a line

This is how the world coordinates change for LastSegment

And this is where the lines go (as you can see on the screenshot, there is a small line that goes correctly)

Help, please
P.S. If you need any more information, please write.

This looks like a relative to world position location swap to me.
Can you please tell me what you are trying to achieve, what do you expect to happen, and what actually happened?

(post deleted by author)

In the end, the whole error was due to the fact that I first added the position of the last segment to the normalized vector and then multiplied it by the length of the segment, which is why I got a strange location. Also, my debugger broke, because before it didnt show that this function was called…
Thanks for trying to help