fixed character movement issue
This commit is contained in:
File diff suppressed because one or more lines are too long
Binary file not shown.
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user