2022-04-28 10:18:21 +00:00
|
|
|
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
|
|
|
|
|
|
#include "BlasterCharacter.h"
|
|
|
|
|
2022-04-28 10:41:43 +00:00
|
|
|
#include "Camera/CameraComponent.h"
|
|
|
|
#include "GameFramework/SpringArmComponent.h"
|
|
|
|
|
|
|
|
|
2022-04-28 10:18:21 +00:00
|
|
|
ABlasterCharacter::ABlasterCharacter()
|
|
|
|
{
|
|
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
|
|
|
2022-04-28 10:41:43 +00:00
|
|
|
CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT("CameraBoom"));
|
|
|
|
CameraBoom->SetupAttachment(GetMesh());
|
|
|
|
CameraBoom->TargetArmLength = 600.f;
|
|
|
|
CameraBoom->bUsePawnControlRotation = false;
|
|
|
|
|
|
|
|
FollowCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("FollowCamera"));
|
|
|
|
FollowCamera->SetupAttachment(CameraBoom, USpringArmComponent::SocketName);
|
|
|
|
FollowCamera->bUsePawnControlRotation = false;
|
2022-04-28 10:18:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void ABlasterCharacter::BeginPlay()
|
|
|
|
{
|
|
|
|
Super::BeginPlay();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void ABlasterCharacter::Tick(float DeltaTime)
|
|
|
|
{
|
|
|
|
Super::Tick(DeltaTime);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
void ABlasterCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
|
|
|
|
{
|
|
|
|
Super::SetupPlayerInputComponent(PlayerInputComponent);
|
|
|
|
|
|
|
|
}
|
|
|
|
|