# Static mesh component (physics enabled) missing in "Get Children Components"

**URL:** <https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355>\
**Category:** Asset Creation\
**Tags:** simulate-physics, scene-component, unreal-engine, missing, question\
**Created:** [September 13, 2016, 9:34pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355 "2016-09-13T21:34:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [September 13, 2016, 9:34pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355/1 "2016-09-13T21:34:07Z")

</div>

Hi,

I’ve spotted a bug in the “Get Children Components” function of a root scene component. As you can see in the following image, the array of children does not contain all the scene component’s children. The static mesh component is clearly missing, **only if “Simulate Physics” is on**.

 ![106849-13-09-2016-05-09-54.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/2/a/32a41d20c13d7e5b819091ede0cea0b986760b1b.png)

Any ways to fix this or work around it? (direct reference would not fix the problem in our case, we have inheritance)

Cheers.

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [September 14, 2016, 2:06pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355/2 "2016-09-14T14:06:20Z")

</div>

Hey CyanBalloon,

I’ve been able to reproduce the issue and have entered a bug report, which you can track the status of here: [Unreal Engine Issues and Bug Tracker (UE-35978)](https://issues.unrealengine.com/issue/UE-35978)

As far as a workaround goes, you could try something like the picture below. I’m not sure how your setup is working, so it may not work in your case, but what I did was basically set the reference first and then set simulate physics to true. That way I already had a stored reference to the mesh. Hopefully that’ll work for you, but if not, I was unable to determine another way to work around it at this time.

 ![106965-workaround.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/0/1/20165b8842a0636c603fa6c6dc99acd0807d7094.png)

Some of it may not be necessary depending on how many components you expect to be contained in the array (such as the check to see if it actually is the static mesh we’re looking for), but it may work in your case.

Thank you for your report and let me know if you have any further questions.

Have a great day

---

<div class="post-metadata">

**Author:** ![CyanBalloon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CyanBalloon](https://forums.unrealengine.com/u/CyanBalloon)\
**Post date:** [September 14, 2016, 6:05pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355/3 "2016-09-14T18:05:30Z")

</div>

Hi Sean,

Thank you for entering the bug report!

At first, I thought your workaround could do it, but in our case, we need to flip flop the physics simulation on multiple objects that have multiple (number unknown) static mesh with physics on/off. So it is necessary to be able to see the static mesh comps that have physics on. What I could do with your idea, though, is create a reference array on construct, and fill it with the static mesh comps, and enable physics simulation afterward.

For now I’ll wait, but if it takes too much time, the workaround should work fine.

Thanks for your help, you have a great day too!

[Update]  
It seems like it was designed that way. Oh well. I’ll have to work with the workaround.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_499018a11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_499018a11](https://forums.unrealengine.com/u/anonymous_user_499018a11)\
**Post date:** [April 21, 2018, 7:28pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355/4 "2018-04-21T19:28:02Z")

</div>

So… it still happens in 4.19… someone with an workaround?

---

<div class="post-metadata">

**Author:** ![Sean\_Flint](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Sean\_Flint](https://forums.unrealengine.com/u/Sean_Flint)\
**Post date:** [April 28, 2018, 2:53pm UTC](https://forums.unrealengine.com/t/static-mesh-component-physics-enabled-missing-in-get-children-components/370355/5 "2018-04-28T14:53:47Z")

</div>

Hey WoolLeg,

This issue was marked as by design for the following reason:

When components start to simulate, they will detach from their parent, as simulation always is done in world space.

This is currently working as intended.
