# Set Simulate Physics and AttachActorToComponent Problem

**URL:** <https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677>\
**Category:** World Creation\
**Tags:** attach-to-component, unreal-engine, Physics, bug-report, Blueprint, question\
**Created:** [July 27, 2015, 6:58am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677 "2015-07-27T06:58:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![hardballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hardballs](https://forums.unrealengine.com/u/hardballs)\
**Post date:** [July 27, 2015, 6:58am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/1 "2015-07-27T06:58:49Z")

</div>

Something seems to go wrong when trying to use Physics on an Actor and then trying to attach it to another’s mesh. In my case, I have an Actor where I set the “Set Simulate Physics” to true in the construction script. At some point I try to “AttachActorToComponent” the mentioned Actor to the Mesh of my Character Blueprint (at a particular socket in the mesh), and nothing happens. However, if I remove the “Set Simulate Physics” to false inside the construction script, everything works fine. Further, I try to disable “Set Simulate Physics” right before the “AttachActorToComponent” call, but it still doesn’t work - In other words, if i set “Set Simulate Physics” to true, even if it’s only once, I can never get the target Actor to attach to the component.

All of the above was done in blueprints.

---

<div class="post-metadata">

**Author:** ![hyperdr1ve](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hyperdr1ve](https://forums.unrealengine.com/u/hyperdr1ve)\
**Post date:** [July 27, 2015, 4:38pm UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/2 "2015-07-27T16:38:21Z")

</div>

One thing to remember is that you should never try to use physics calls and translate calls in the same frame. This goes for attachments and enabling/disabling physics too.

What you’re doing is fine, just wait a frame after you disable physics before attaching the actor.

---

<div class="post-metadata">

**Author:** ![hardballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hardballs](https://forums.unrealengine.com/u/hardballs)\
**Post date:** [July 28, 2015, 2:30am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/3 "2015-07-28T02:30:56Z")

</div>

I used a Delay node set at 0.5 and it did not work.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 28, 2015, 3:18pm UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/4 "2015-07-28T15:18:48Z")

</div>

Hi hardballs,

Could you post some screenshots showing us your blueprint setup?

---

<div class="post-metadata">

**Author:** ![hardballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hardballs](https://forums.unrealengine.com/u/hardballs)\
**Post date:** [July 28, 2015, 5:19pm UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/5 "2015-07-28T17:19:02Z")

</div>

I attached my construction script for an Item, which is where is set simulate physics to true. Inside the character blueprint, once a client presses a key, it will disable the simulate physics and do other logic.

---

<div class="post-metadata">

**Author:** ![TJ\_V](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tj_v/32/1008648_2.png) [@TJ\_V](https://forums.unrealengine.com/u/TJ_V)\
**Post date:** [July 28, 2015, 6:45pm UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/6 "2015-07-28T18:45:13Z")

</div>

The main issue has to do with your Component hierarchy for the Item blueprint. When you set the Body to simulate physics the root stays where it was placed. When you pick the item up it is the root of the blueprint that is attaching to the player.

I suggest making the Body the root component (or an invisible dummy component) and your setup will work fine.

---

<div class="post-metadata">

**Author:** ![hardballs](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@hardballs](https://forums.unrealengine.com/u/hardballs)\
**Post date:** [July 29, 2015, 3:39am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/7 "2015-07-29T03:39:02Z")

</div>

TJ, I can’t thank you enough for your input. This also fixed other issues I was having in my object inheritance hierarchy - I had some hacks cooked up to patch them up.

Apologies for the mistake.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_8b7ea8c9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_8b7ea8c9](https://forums.unrealengine.com/u/anonymous_user_8b7ea8c9)\
**Post date:** [November 27, 2015, 1:37am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/8 "2015-11-27T01:37:35Z")

</div>

I wanted to bump this since this is such an important issue. It took me several hours to find this very simple fix. Thanks alot, TJ!

---

<div class="post-metadata">

**Author:** ![\_2311\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_2311\_1](https://forums.unrealengine.com/u/_2311_1)\
**Post date:** [May 26, 2021, 7:36am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/9 "2021-05-26T07:36:16Z")

</div>

I cant spawn actors on the map when I delete the scene

---

<div class="post-metadata">

**Author:** ![\_2311\_1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_2311\_1](https://forums.unrealengine.com/u/_2311_1)\
**Post date:** [May 26, 2021, 7:36am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/10 "2021-05-26T07:36:55Z")

</div>

I cant spawn actors on the map when I delete the scene

---

<div class="post-metadata">

**Author:** ![JD\_Ros15](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JD\_Ros15](https://forums.unrealengine.com/u/JD_Ros15)\
**Post date:** [March 21, 2023, 11:47am UTC](https://forums.unrealengine.com/t/set-simulate-physics-and-attachactortocomponent-problem/326677/11 "2023-03-21T11:47:20Z")

</div>

Thank you! I literally spent all day, only to find out that the fix only takes 1 second. 😂
