Root component not following child mesh.
I'm having quite problem with player character actor. I have components in blueprint configured like below:
|| PlayerMesh (child of root)
|| SphereMesh (child of root)
|| || Camera (child of Sphere)
When I set velocity to the PlayerMesh I expected movement of whole character but I can see my PlayerMesh floating away. I can use "SetLocation" to move RootScene to the place where the PlayerMesh is, but I suppose it shouldn't work like that? Am I missing something here?
asked Mar 03 '16 at 11:35 AM in Blueprint Scripting
The location of the root scene does not change unless you specifically change the actor location. Everything inside the actor with physics enabled will only update it's own position and all it's children, the root of the actor will stay stationary, as will all other components in the actor.
Another thing: if you want the actor to move along with something that has physics enabled, then that physics enabled component should be the root of the actor (delete the root scene). So if you make the playermesh the root component of the actor, then everything else will move with it.
Follow this question
Once you sign in you will be able to subscribe for any updates here