Camera now following Pawn

This commit is contained in:
2022-01-26 16:48:58 +01:00
parent 986233d960
commit b7b9963a68
7 changed files with 56 additions and 45 deletions
+4 -17
View File
@@ -28,26 +28,13 @@ public:
class AAdventureCharacter* FollowPawn;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Input")
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Input")
float ESASize;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Input")
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Input")
float ScrollAccelleration;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Input")
UPROPERTY(EditDefaultsOnly, BlueprintReadWrite, Category = "Input")
float BaseScrollSpeed;
UPROPERTY()
FVector AdvPawnLocationPrevious;
UPROPERTY()
FVector AdvPawnLocationCurrent;
UPROPERTY()
FVector AdvPawnLocationDelta;
UPROPERTY(BlueprintReadWrite, Category = "Runtime")
bool bAdvPawnIsMoving = false;
UPROPERTY(BlueprintReadWrite, Category = "Runtime")
class AHexTile* SelectedHex;
protected:
// Called when the game starts or when spawned
virtual void BeginPlay() override;
@@ -77,5 +64,5 @@ public:
void EdgeScrollVert(float AxisValue);
UFUNCTION(BlueprintCallable)
void FollowAdvPawn();
void FollowAdvPawn(float DeltaSeconds);
};