MovingPlatform.h
my headerunknown
c_cpp
3 years ago
779 B
17
Indexable
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MovingPlatform.generated.h"
UCLASS()
class UNREALLEARNINGKIT_API AMovingPlatform : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
AMovingPlatform();
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
public:
// Called every frame
virtual void Tick(float DeltaTime) override;
UPROPERTY(EditAnywhere)
FVector PlatformVelocity = FVector(0, 250, 0);
UPROPERTY(EditAnywhere)
FVector OriginalLocation = FVector(0, 0, 0);
UPROPERTY(EditAnywhere)
float MoveDistance = 500;
};
Editor is loading...