Skip to content
Snippets Groups Projects
Commit c7fa6a11 authored by Qurabi's avatar Qurabi
Browse files

Überflüssige Includes gelöscht.

Den Code in der folgenden Methoden: HandleMovementInput, OnForward_Implementation und OnRight_Implementation umgeändert.
parent 76bfe18c
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include "DisplayClusterSettings.h" #include "DisplayClusterSettings.h"
#include "IDisplayCluster.h" #include "IDisplayCluster.h"
#include "Engine/Engine.h" #include "Engine/Engine.h"
#include "Camera/CameraComponent.h"
#include "Components/SphereComponent.h" #include "Components/SphereComponent.h"
#include "DrawDebugHelpers.h" #include "DrawDebugHelpers.h"
#include "Math/Vector.h" #include "Math/Vector.h"
...@@ -67,15 +66,20 @@ AVirtualRealityPawn::AVirtualRealityPawn(const FObjectInitializer& ObjectInitial ...@@ -67,15 +66,20 @@ AVirtualRealityPawn::AVirtualRealityPawn(const FObjectInitializer& ObjectInitial
} }
void AVirtualRealityPawn::OnForward_Implementation(float Value) void AVirtualRealityPawn::OnForward_Implementation(float Value)
{
if (RightHand)
{ {
HandleMovementInput(Value, RightHand->GetForwardVector()); HandleMovementInput(Value, RightHand->GetForwardVector());
}
} }
void AVirtualRealityPawn::OnRight_Implementation(float Value) void AVirtualRealityPawn::OnRight_Implementation(float Value)
{
if (RightHand)
{ {
HandleMovementInput(Value, RightHand->GetRightVector()); HandleMovementInput(Value, RightHand->GetRightVector());
} }
}
void AVirtualRealityPawn::OnTurnRate_Implementation(float Rate) void AVirtualRealityPawn::OnTurnRate_Implementation(float Rate)
{ {
...@@ -456,7 +460,6 @@ void AVirtualRealityPawn::CheckForPhysWalkingCollision() ...@@ -456,7 +460,6 @@ void AVirtualRealityPawn::CheckForPhysWalkingCollision()
void AVirtualRealityPawn::HandleMovementInput(float Value, FVector Direction) void AVirtualRealityPawn::HandleMovementInput(float Value, FVector Direction)
{ {
if (RightHand) {
if (NavigationMode == EVRNavigationModes::nav_mode_walk) if (NavigationMode == EVRNavigationModes::nav_mode_walk)
{ {
VRWalkingMode(Value, Direction); VRWalkingMode(Value, Direction);
...@@ -466,7 +469,6 @@ void AVirtualRealityPawn::HandleMovementInput(float Value, FVector Direction) ...@@ -466,7 +469,6 @@ void AVirtualRealityPawn::HandleMovementInput(float Value, FVector Direction)
VRFlyingMode(Value, Direction); VRFlyingMode(Value, Direction);
} }
} }
}
void AVirtualRealityPawn::VRWalkingMode(float Value, FVector Direction) void AVirtualRealityPawn::VRWalkingMode(float Value, FVector Direction)
{ {
......
...@@ -70,7 +70,7 @@ private: ...@@ -70,7 +70,7 @@ private:
public: public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Pawn") EVRNavigationModes NavigationMode = EVRNavigationModes::nav_mode_fly; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Pawn") EVRNavigationModes NavigationMode = EVRNavigationModes::nav_mode_fly;
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Pawn") float MaxStepHeight = 40.f; UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Pawn") float MaxStepHeight = 40.0f;
//Execute specified console command on all nDisplayCluster Nodes //Execute specified console command on all nDisplayCluster Nodes
UFUNCTION(Exec, BlueprintCallable, Category = "DisplayCluster") static void ClusterExecute(const FString& Command); UFUNCTION(Exec, BlueprintCallable, Category = "DisplayCluster") static void ClusterExecute(const FString& Command);
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment