# Root Component is getting flattened at runtime, children is side by side with the root, why?

**URL:** <https://forums.unrealengine.com/t/root-component-is-getting-flattened-at-runtime-children-is-side-by-side-with-the-root-why/789589>\
**Category:** Blueprint\
**Tags:** root-component, unreal-engine, Blueprint, question\
**Created:** [March 13, 2023, 9:46am UTC](https://forums.unrealengine.com/t/root-component-is-getting-flattened-at-runtime-children-is-side-by-side-with-the-root-why/789589 "2023-03-13T09:46:27Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![AlfredBaudisch](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alfredbaudisch/32/556329_2.png) [@AlfredBaudisch](https://forums.unrealengine.com/u/AlfredBaudisch)\
**Post date:** [March 14, 2023, 9:06am UTC](https://forums.unrealengine.com/t/root-component-is-getting-flattened-at-runtime-children-is-side-by-side-with-the-root-why/789589/5 "2023-03-14T09:06:07Z")

</div>

Seems to be by design, so I’m considering this as solved.

> The gotcha is that when you set simulate physics on a component, it detaches that component from its parent.

> Make sure the StaticMesh is the Root of the Actor you’re trying to attach, that fixed it for me.

Source:

> [@Attach/detach Actor with SimulatePhysics to skeletal mesh](https://forums.unrealengine.com/t/attach-detach-actor-with-simulatephysics-to-skeletal-mesh/356862):
>
> Hi all, I’m having trouble with something that seems like it should be should be simple, but just isn’t working. What I’m trying to do is have a weapon laying on the ground that has SimulatePhysics enabled - so it can be kicked, shot at, pushed around, etc., that I can pick up and use. When I use it (handled by a different BP+Interface), it should attach to my player model (with SimulatePhysics disabled) so I can fire it. When I drop it, I want it to go back to the state of being a prop - so I…

---

_[View the full topic](https://forums.unrealengine.com/t/root-component-is-getting-flattened-at-runtime-children-is-side-by-side-with-the-root-why/789589)._
