fixed character movement issue

This commit is contained in:
2025-11-22 22:18:21 -05:00
parent 73a3aac159
commit 44d54457ae
3 changed files with 8 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -8,6 +8,9 @@ ADDICharacter::ADDICharacter()
{ {
// Set this character to call Tick() every frame. You can turn this off to improve performance if you don't need it. // 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; PrimaryActorTick.bCanEverTick = true;
bReplicates = true;
// bReplicateMovement = true;
CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent")); CameraComponent = CreateDefaultSubobject<UCameraComponent>(TEXT("CameraComponent"));
CameraComponent->SetupAttachment(GetMesh()); CameraComponent->SetupAttachment(GetMesh());
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f)); CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));