Hi all, I’m attempting to attach my actor to my player character and I have done so but I don’t want my actor to rotate with the character when it turns left and right. Is there any way I can do this? Thank you.
Here’s my code in BeginPlay():
PlayerCharacter = Cast<APlayerCharacter>(GetWorld()->GetFirstPlayerController()->GetPawn());
this->AttachToActor(PlayerCharacter, FAttachmentTransformRules(EAttachmentRule::SnapToTarget, EAttachmentRule::KeepWorld, EAttachmentRule::KeepWorld, false), FName(“TopSocket”));