From 1834ea5d5c38e99cfb60e990d45ccd1f2f7c0353 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 21 Mar 2023 19:14:18 +0100 Subject: [PATCH] explicitly assign motion controllers to the proper hands --- Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp | 2 ++ 1 file changed, 2 insertions(+) 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);