ChildActor with physics spawns in incorrect location

Annoying bug that has appeared since upgrading our project from UE4.7 to UE4.8. I suspect it is linked to this bug (JIRA UE-15268).

Basically I have an actor (blueprint) with a physics-simulated static mesh as root component. When this is used via a ChildActorComponent spawn location and scale are not correct. It also only seems to happen when object is spawned dynamically (rather than simply dragged into scene).

A work around is to disable simulate physics and enable it after one frame.

Repro steps:

  1. Create actor with a static mesh as root component
  2. Enable physics simulation on that mesh
  3. Create another actor with a child actor component referencing first actor
  4. Reposition child actor component (and scale if you want)
  5. Spawn containing actor in level dynamically
  6. Observe location is not correct

Downloads:

I have created a pair of assets that produce effect.

[Child actor: **][2]

[Containing actor: **][3]

They use only starter content assets so you should just be able to import them. You’ll need to spawn Repo_Container in level blueprint.

[3]:

Hey ,

I’ve assigned someone to look into this for you and confirm whether it’s related to UE-15268. They’ll post here if they have any questions for you. Thanks for report!

Hi ,

I was able to reproduce this issue. I’m not entirely sure it is related to JIRA that you listed above so I created JIRA UE-18762. Our developers will be investigating it further and we will post back here with additional info if needed.

An additional workaround besides one you mentioned above is to make root of first blueprint a SceneComponent instead of StaticMesh.

Cheers,

TJ

Now I have UE 4.10.3 but this bug still exist. wtf?
Small project reproduces this bug:
https://.com/open?id=0BxuGEe-Ts4kTWGQ1Tm96bm5QZms

Hello,

This specific issue was not fixed because we have features in works that will make it obsolete. I do not however have a ETA on said features.

Cheers,

TJ

I encountered same problem in UE 4.16

Hi TJ,

I would like to solve same issue. What do you mean by “root of first blueprint” in your first reply? Would it be root of child actor that was spawned, or maybe root of owner, or maybe something else?