# Error in getting world coordinates

**URL:** <https://forums.unrealengine.com/t/error-in-getting-world-coordinates/2632299>\
**Category:** Blueprint\
**Tags:** unreal-engine, transform, question, Blueprint\
**Created:** [August 6, 2025, 4:03pm UTC](https://forums.unrealengine.com/t/error-in-getting-world-coordinates/2632299 "2025-08-06T16:03:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![blAddddDe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Post date:** [August 6, 2025, 4:03pm UTC](https://forums.unrealengine.com/t/error-in-getting-world-coordinates/2632299/1 "2025-08-06T16:03:45Z")

</div>

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.

 ![BeginPlay](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/4/b84266f6efe1b40235b323a4f9ab62eca9c54faa.png)  
 ![Calculate Segment Length](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/1/c619dd321ef5d4d78112330ed880a08cf6a12732.png)

The whole problem appears in Event Tick

 ![EventTick](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/2/1a28403631fbd09573c682f00753ab31d4786b20.png)  
 ![UpdateBuilderState](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/3/a535662478a0d0ae4c01fb25f65e1bfd9856e02c.png)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/c/66cce1f4e82ddf477d07b578cb34bfb6df50cbb3.png)

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/2/ad2586c9c4bc5e06fe45976e6466cf82ae792c24.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Playasene94](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/playasene94/32/1092119_2.png) [@Playasene94](https://forums.unrealengine.com/u/Playasene94)\
**Post date:** [August 7, 2025, 1:50am UTC](https://forums.unrealengine.com/t/error-in-getting-world-coordinates/2632299/2 "2025-08-07T01:50:13Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![blAddddDe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blAddddDe](https://forums.unrealengine.com/u/blAddddDe)\
**Post date:** [August 7, 2025, 8:04pm UTC](https://forums.unrealengine.com/t/error-in-getting-world-coordinates/2632299/4 "2025-08-07T20:04:34Z")

</div>

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
