Files
RailWorker2/Source/railwayWorker/RailwayCarriage.cpp
T
2020-01-22 15:18:31 +05:00

38 lines
815 B
C++

// Fill out your copyright notice in the Description page of Project Settings.
#include "RailwayCarriage.h"
#include "Components/StaticMeshComponent.h"
// Sets default values
ARailwayCarriage::ARailwayCarriage()
{
// Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it.
PrimaryActorTick.bCanEverTick = true;
// root
Root = CreateDefaultSubobject<USceneComponent>(TEXT("Root"));
RootComponent = Root;
// body mesh railway
railwayBody = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("railway"));
railwayBody->AttachTo(Root);
}
// Called when the game starts or when spawned
void ARailwayCarriage::BeginPlay()
{
Super::BeginPlay();
}
// Called every frame
void ARailwayCarriage::Tick(float DeltaTime)
{
Super::Tick(DeltaTime);
}