problem solved, no idea why

This commit is contained in:
2025-11-22 16:28:39 -05:00
parent a59399ebfe
commit bb0d0a8660
8 changed files with 91 additions and 20 deletions

View File

@@ -8,6 +8,10 @@ ADDICharacter::ADDICharacter()
{
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
CameraComponent->SetupAttachment(GetMesh());
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));
CameraComponent->bUsePawnControlRotation = true;
}
@@ -25,10 +29,4 @@ void ADDICharacter::Tick(float DeltaTime)
}
// Called to bind functionality to input
void ADDICharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
{
Super::SetupPlayerInputComponent(PlayerInputComponent);
}