Fix camera

This commit is contained in:
2026-08-11 01:00:06 +03:00
parent 846f836843
commit 84578963d5
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ ANERGUSCharacter::ANERGUSCharacter()
FirstPersonCameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera")); FirstPersonCameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera"));
//FirstPersonCameraComponent->SetupAttachment(FirstPersonMesh, FName("head")); //FirstPersonCameraComponent->SetupAttachment(FirstPersonMesh, FName("head"));
FirstPersonCameraComponent->SetupAttachment(FirstPersonArmMesh); FirstPersonCameraComponent->SetupAttachment(FirstPersonArmMesh);
FirstPersonCameraComponent->SetRelativeLocationAndRotation(FVector(-2.8f, 5.89f, 0.0f), FRotator(0.0f, 90.0f, -90.0f)); FirstPersonCameraComponent->SetRelativeLocationAndRotation(FVector(0.0f, 0.0f, 150.0f), FRotator(0.0f, 90.0f, 0.0f));
FirstPersonCameraComponent->bUsePawnControlRotation = true; FirstPersonCameraComponent->bUsePawnControlRotation = true;
FirstPersonCameraComponent->bEnableFirstPersonFieldOfView = true; FirstPersonCameraComponent->bEnableFirstPersonFieldOfView = true;
FirstPersonCameraComponent->bEnableFirstPersonScale = true; FirstPersonCameraComponent->bEnableFirstPersonScale = true;