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