Skip to content
Snippets Groups Projects
Commit 9f0ef47a authored by Ali Can Demiralp's avatar Ali Can Demiralp
Browse files

Translation direction is set to left motion controller in HMD mode.

parent bfd69b81
Branches
Tags
No related merge requests found
...@@ -100,6 +100,8 @@ void AVirtualRealityPawn::BeginPlay () ...@@ -100,6 +100,8 @@ void AVirtualRealityPawn::BeginPlay ()
RightMotionControllerComponent = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("RightMotionControllerComponent")); RightMotionControllerComponent = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("RightMotionControllerComponent"));
RightMotionControllerComponent->SetTrackingSource (EControllerHand::Right); RightMotionControllerComponent->SetTrackingSource (EControllerHand::Right);
RightMotionControllerComponent->SetShowDeviceModel(true); RightMotionControllerComponent->SetShowDeviceModel(true);
TranslationDirection = LeftMotionControllerComponent;
} }
} }
void AVirtualRealityPawn::Tick (float DeltaSeconds) void AVirtualRealityPawn::Tick (float DeltaSeconds)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment