Hi, I tried attaching camera to a socket on the mesh. For some reason it doesn’t seem to be working.
I edited the 3rd person template code for it.
// Create a camera boom (pulls in towards the player if there is a collision) CameraBoom = PCIP.CreateDefaultSubobject<USpringArmComponent>(this, TEXT("CameraBoom")); CameraBoom->AttachTo(Mesh, "FirePoint"); CameraBoom->TargetArmLength = 0.0f; // The camera follows at this distance behind the character CameraBoom->bUseControllerViewRotation = true; // Rotate the arm based on the controller // Create a follow camera FollowCamera = PCIP.CreateDefaultSubobject<UCameraComponent>(this, TEXT("FollowCamera")); FollowCamera->AttachTo(CameraBoom, USpringArmComponent::SocketName); // Attach the camera to the end of the boom and let the boom adjust to match the controller orientation FollowCamera->bUseControllerViewRotation = false; // Camera does not rotate relative to arm
This is the location of the socket
The camera is getting attached to the chest for some reason.