40 lines
1.0 KiB
C++
40 lines
1.0 KiB
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "DDICharacter.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<UCameraComponent>(TEXT("CameraComponent"));
|
|
CameraComponent->SetupAttachment(GetMesh());
|
|
CameraComponent->SetRelativeLocation(FVector(0.0f, 0.0f, 50.0f));
|
|
CameraComponent->bUsePawnControlRotation = true;
|
|
|
|
/* Was going to add, but showed up as duplicate.
|
|
//CharacterMeshCompenent = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("CharacterMeshComponent"));
|
|
// CharacterMeshCompenent->SetupAttachment(CameraComponent);
|
|
*/
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void ADDICharacter::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void ADDICharacter::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
|
|
}
|
|
|
|
|