Set Simulate Physics and AttachActorToComponent Problem
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.
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.
answered Jul 27 '15 at 04:38 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here