# Scene component location defaults to world origin

**URL:** <https://forums.unrealengine.com/t/scene-component-location-defaults-to-world-origin/1675995>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, bug-report, Blueprint, question\
**Created:** [February 9, 2024, 9:23am UTC](https://forums.unrealengine.com/t/scene-component-location-defaults-to-world-origin/1675995 "2024-02-09T09:23:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![erlo68](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erlo68](https://forums.unrealengine.com/u/erlo68)\
**Post date:** [February 9, 2024, 9:23am UTC](https://forums.unrealengine.com/t/scene-component-location-defaults-to-world-origin/1675995/1 "2024-02-09T09:23:42Z")

</div>

Ok, i tought i was going crazy until i tested this in a fresh setup.

I was having trouble doing a simple line trace for my feet. The problem was two fold in that on start up my feet where always pointing towards the world origin until a one of my other trace functions kicked in and everything worked fine…

Until i was trying to add a new trace that required the right vector of my scene component.  
This is where this problem manifested for real. i was testing and testing and testing but the trace just wouldnt happen correctly. So after adding the debug setup in the first screenshot it would always try and trace to the world origin.

BUT WHY??? So i tried a new file, to check if i did something else somewhere that interfered with this, but to my surprise it still does the same thing here.

I simply made a new Scene\_Component\_BP, added it to the Character\_BP and added the debug code to the Scene\_Component\_BP. Even trying to constantly set the scene components location to my capsule components location does nothing.  
This also counts for normal Actor\_BPs.

Calling the same debug setup from inside the Character\_BP also results in the same problem.

This has to be a bug right?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/f/25f68fb1506a1af5ad9d3c05692fa801b71b7d23.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/b/c/ebcc2a4f8c66a840670d49d04ee01c2a235245f0.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/7/7/27773fe95cf94b72f69275d7a7826460254a7601.jpeg)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [February 9, 2024, 9:46am UTC](https://forums.unrealengine.com/t/scene-component-location-defaults-to-world-origin/1675995/2 "2024-02-09T09:46:14Z")

</div>

> [@erlo68](#):
>
> This has to be a bug right?

The trace is not set up correctly, you must add `World Location` to `End`. This:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/9/7/397c2210d7c51f48ce1937f69b41b2249968aa9a.png)

is just 50uus from world 0,0,0. So 50,0,0.

* * *

> I was having trouble doing a simple line trace for my feet.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/5/7/b57bfd2560bc63c6569fda7667a01af260a00125.png)

In case of characters, the movement component already does it out of the box. See last entry in this post:

> [@Spawning Object (emitter) with the right rotation](https://forums.unrealengine.com/t/spawning-object-emitter-with-the-right-rotation/1670726/9):
>
> Mainly used for direction, deriving rotators from normals is a bit of a side product. You will only need a rotator when something actually asks for it. More than often directional vectors are the way to go. read more about normals This is very official, lots of math and trig: Btw, Dot Product is the next thing to learn about once you’ve got Normals under control. How to get there: Once you have it: This is also a great resource: [[WTF Is? Struct: Hit R…](https://www.youtube.com/watch?v=vje9S5aj15k)

Perhaps you could leverage that. Saves you a Tick. Probably irrelevant.

---

<div class="post-metadata">

**Author:** ![erlo68](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@erlo68](https://forums.unrealengine.com/u/erlo68)\
**Post date:** [February 9, 2024, 10:31am UTC](https://forums.unrealengine.com/t/scene-component-location-defaults-to-world-origin/1675995/3 "2024-02-09T10:31:31Z")

</div>

Ah, ok that would make sense. I tought the forward vector would already be carrying my world location, just adding it fixed it.

That FindFloorResult is interesting, but sadly not useful in my case. I’m making a procedural walk cycle so i need a different trace for each of my feet. Since i assume the FindFloorResult works with the Capsule\_Component.
