text: // Fill out your copyright notice in the Description page of Project Settings.
  
  
  #include "Projectile.h"
  
  // Sets default values for this component's properties
  UProjectile::UProjectile() {
  	// Set this component to be initialized when the game starts, and to be ticked every frame.  You can turn these features
  	// off to improve performance if you don't need them.
  	PrimaryComponentTick.bCanEverTick = true;
  
  	mesh = CreateDefaultSubobject<UStaticMeshComponent>("ProjectileMesh");
  	collision = CreateDefaultSubobject<UCapsuleComponent>("ProjectileHitbox");
  	velocity = FVector(0, 0, 0);
  }
  
  
  // Called when the game starts
  void UProjectile::BeginPlay() {
  	Super::BeginPlay();
  }
  
  
  // Called every frame
  void UProjectile::TickComponent(float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) {
  	Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
  	mesh->SetWorldLocation(mesh->GetComponentLocation() + velocity);
  }
  
  