2022-05-23 18:41:30 +00:00
|
|
|
// Copyright Epic Games, Inc. All Rights Reserved.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Camera/LyraCameraMode.h"
|
|
|
|
#include "Curves/CurveFloat.h"
|
2022-09-13 07:18:28 +00:00
|
|
|
#include "Math/Rotator.h"
|
|
|
|
#include "UObject/UObjectGlobals.h"
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
#include "LyraCameraMode_TopDownArenaCamera.generated.h"
|
|
|
|
|
2022-09-13 07:18:28 +00:00
|
|
|
class UObject;
|
2022-05-23 18:41:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* ULyraCameraMode_TopDownArenaCamera
|
|
|
|
*
|
|
|
|
* A basic third person camera mode that looks down at a fixed arena.
|
|
|
|
*/
|
|
|
|
UCLASS(Abstract, Blueprintable)
|
|
|
|
class ULyraCameraMode_TopDownArenaCamera : public ULyraCameraMode
|
|
|
|
{
|
|
|
|
GENERATED_BODY()
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
ULyraCameraMode_TopDownArenaCamera();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
//~ULyraCameraMode interface
|
|
|
|
virtual void UpdateView(float DeltaTime) override;
|
|
|
|
//~End of ULyraCameraMode interface
|
|
|
|
|
|
|
|
protected:
|
|
|
|
UPROPERTY(EditDefaultsOnly, Category = "Third Person")
|
|
|
|
float ArenaWidth;
|
|
|
|
|
|
|
|
UPROPERTY(EditDefaultsOnly, Category = "Third Person")
|
|
|
|
float ArenaHeight;
|
|
|
|
|
|
|
|
UPROPERTY(EditDefaultsOnly, Category = "Third Person")
|
|
|
|
FRotator DefaultPivotRotation;
|
|
|
|
|
|
|
|
UPROPERTY(EditDefaultsOnly, Category = "Third Person")
|
|
|
|
FRuntimeFloatCurve BoundsSizeToDistance;
|
|
|
|
};
|