Camera now following Pawn
This commit is contained in:
+4
-17
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user