Camera does not attach to socket correctly

Attempting to attach a camera to a socket that is offset from the head bone, and it seems that the camera is attaching itself to the starting point or base location of the socket, rather than the relative location of it.

I’ve attempted to set the camera as a child of the mesh and set the socket that way, and I have also tried to do it via blueprints via the SetRelativeLocation and using the mesh as the target, and socket’s name. Both scenarios put the camera at the location of the head bone.

Hi SaviorNT,

I attempted a similar setup but it seems to be working for me. Could you try the setup below? If this doesn’t work for you, could you post some screenshot or a small test project that shows your setup?

I’ll give it a shot when I set up the character this go around. I was having some other issues with the animations being completely borked, and the detached head being 4 feet from the body, among other things. I think that the project may have been corrupted :\

Hi SaviorNT,

Have you had any luck getting this working on your end yet?

Hi SaviorNT,

We haven’t heard back from you in a few days, so we are marking this post as resolved for tracking purposes. If you’re still experiencing this issue, please feel free to post back here with additional information.

Cheers,

TJ

Sorry, I’ve been up to my neck in work :\

I still need to test using the BP you recommended. I tried again using the character blueprint - components tab in the ShowDown demo, making the camera a child of the player, and attaching to the head socket, and I got the same wonky effect (the same effect is given if you try to attach the head to the mesh in the same fashion). Or any other mesh for that matter. I’m attaching pictured of the steps to duplicate the issue:

Step 1: Add Camera (or Head in this case) to the hierarchy:

Step 2: Make the Head a Child of the Mesh

Step 3: Make the parent socket of the Head mesh to the Head socket on the Mesh

Thank you for the repro steps. I was able to reproduce the issue, so I’ve created JIRA UE-21963. Our developers will be investigating the issue further and we will post back here with questions and/or updates as we have them.

As a workaround, you can manually move the head back into position and it will keep the correct offset during play.

Cheers,

TJ