continuing to try to fix

This commit is contained in:
2025-11-20 22:33:43 -05:00
parent 2d860b2a53
commit 84f62de157
7 changed files with 11 additions and 3 deletions

View File

@@ -34,6 +34,7 @@ ADDICharacter::ADDICharacter()
FirstPersonCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("First Person Camera"));
// FirstPersonCamera->SetupAttachment(FirstPersonMesh, FName("head"));
FirstPersonCamera->SetupAttachment(GetMesh());
FirstPersonCamera->SetRelativeLocationAndRotation(FVector(-2.8f, 5.89f, 0.0f), FRotator(0.0f, 90.0f, -90.0f));
FirstPersonCamera->bUsePawnControlRotation = true;
FirstPersonCamera->bEnableFirstPersonFieldOfView = true;
@@ -59,6 +60,9 @@ void ADDICharacter::BeginPlay()
{
Super::BeginPlay();
GEngine->AddOnScreenDebugMessage(-1, 5, FColor::Red, GetController()->GetName());
// SetupPlayerInputComponent( InputComponent);
}