# How to prevent items (temporarily) from falling over?

**URL:** <https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754>\
**Category:** XR Development\
**Tags:** gravity, physics-objects, unreal-engine, FeatureRequest, Physics, question\
**Created:** [September 21, 2019, 5:52pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754 "2019-09-21T17:52:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc1fe2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc1fe2e1](https://forums.unrealengine.com/u/anonymous_user_bc1fe2e1)\
**Post date:** [September 21, 2019, 5:52pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/1 "2019-09-21T17:52:43Z")

</div>

I have a (VR) game where you can pick mushrooms that spawn in random locations. Right after the spawn, I want them to stand upright, as if they were growing on the ground. As soon as you pick them, they should behave more or less like the standard pickup cube (simulated physics, they cal fall over and roll around).

How do I “secure” them, and make them stand upright after the spawn?

First I thought I’d try to disable gravity, but that doesn’t seem to be possible (only for components? - I don’t really understand why). Then I tried attaching the shroom to the invisible spawning point, but that doesn’t seem to work either.

Any good ideas?

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [September 21, 2019, 6:30pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/2 "2019-09-21T18:30:02Z")

</div>

What about set simulate physics to false? And than enable it when user takes it or whatever idea is?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc1fe2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc1fe2e1](https://forums.unrealengine.com/u/anonymous_user_bc1fe2e1)\
**Post date:** [September 21, 2019, 6:39pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/3 "2019-09-21T18:39:43Z")

</div>

Thanks for your reply! I did have this thought. But: this function requires a primitive component reference, which I don’t have. Would I have to get the mesh component from my item first, and pass that one as target?

---

<div class="post-metadata">

**Author:** ![Przemek2222](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Przemek2222](https://forums.unrealengine.com/u/Przemek2222)\
**Post date:** [September 21, 2019, 6:51pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/4 "2019-09-21T18:51:00Z")

</div>

Why not? What do you have than? If you say what do you have we may found a better way.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc1fe2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc1fe2e1](https://forums.unrealengine.com/u/anonymous_user_bc1fe2e1)\
**Post date:** [September 21, 2019, 6:58pm UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/5 "2019-09-21T18:58:06Z")

</div>

Nice one, Przemek! Thanks so much. I simply never thought more about this one because I thought it wouldn’t work with a component. But it works just fine with just getting the mesh component.

---

<div class="post-metadata">

**Author:** ![Rumbleball](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rumbleball](https://forums.unrealengine.com/u/Rumbleball)\
**Post date:** [September 25, 2019, 1:31am UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/6 "2019-09-25T01:31:15Z")

</div>

Its all about the components. An Actor is basically just a container for Components. If you query am Actor for its transform, it takes the transform from the Root-Component

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_bc1fe2e1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_bc1fe2e1](https://forums.unrealengine.com/u/anonymous_user_bc1fe2e1)\
**Post date:** [October 26, 2019, 10:42am UTC](https://forums.unrealengine.com/t/how-to-prevent-items-temporarily-from-falling-over/455754/7 "2019-10-26T10:42:31Z")

</div>

I’m beginning to see the logic behind this, thank you for the hint. At first I assumed this was structured like a hierarchy, like if I take a component, only children of the component will be affected, nothing above it.
