Sets up the initial Unreal Engine project structure. Includes the creation of core classes such as: - A custom GameMode - A PlayerController - A PlayerPawn - A Centipede Pawn Also configures Git integration and includes a default level.
33 lines
713 B
C++
33 lines
713 B
C++
// Fill out your copyright notice in the Description page of Project Settings.
|
|
|
|
|
|
#include "M4_Centipede.h"
|
|
|
|
|
|
// Sets default values
|
|
AM4_Centipede::AM4_Centipede()
|
|
{
|
|
// Set this pawn to call Tick() every frame. You can turn this off to improve performance if you don't need it.
|
|
PrimaryActorTick.bCanEverTick = true;
|
|
}
|
|
|
|
// Called when the game starts or when spawned
|
|
void AM4_Centipede::BeginPlay()
|
|
{
|
|
Super::BeginPlay();
|
|
|
|
}
|
|
|
|
// Called every frame
|
|
void AM4_Centipede::Tick(float DeltaTime)
|
|
{
|
|
Super::Tick(DeltaTime);
|
|
}
|
|
|
|
// Called to bind functionality to input
|
|
void AM4_Centipede::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent)
|
|
{
|
|
Super::SetupPlayerInputComponent(PlayerInputComponent);
|
|
}
|
|
|