// Fill out your copyright notice in the Description page of Project Settings. #include "DDICharacter.h" #include "GameFramework/SpringArmComponent.h" // Sets default values 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; bReplicates = true; // bReplicateMovement = true; CameraComponent = CreateDefaultSubobject(TEXT("CameraComponent")); CameraComponent->SetupAttachment(GetMesh(), "headSocket"); CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f)); CameraComponent->bUsePawnControlRotation = true; } // Called when the game starts or when spawned void ADDICharacter::BeginPlay() { Super::BeginPlay(); } // Called every frame void ADDICharacter::Tick(float DeltaTime) { Super::Tick(DeltaTime); }