diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp index a0111615..28fe0df7 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp @@ -90,6 +90,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer) MotionControllerLeft->SetCanEverAffectNavigation(false); MotionControllerLeft->SetWorldLocation(FVector{30.0f, -20.0f, -10.0f}, false, nullptr, ETeleportType::None); + MotionControllerLeft->SetTrackingSource(EControllerHand::Left); HandLeft = ObjectInitializer.CreateDefaultSubobject(this, TEXT("HandLeft")); HandLeft->SetupAttachment(MotionControllerLeft); @@ -103,6 +104,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer) MotionControllerRight->SetCanEverAffectNavigation(false); MotionControllerRight->SetWorldLocation(FVector{30.0f, 20.0f, -10.0f}, false, nullptr, ETeleportType::None); + MotionControllerRight->SetTrackingSource(EControllerHand::Left); HandRight = ObjectInitializer.CreateDefaultSubobject(this, TEXT("HandRight")); HandRight->SetupAttachment(MotionControllerRight);