From 792ffa4b2b1231f63c32425978b4b041798d3547 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Tue, 25 Apr 2023 17:01:59 +0200 Subject: [PATCH] fix the hand right hand offset --- Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp index 346378f7..1f473957 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp @@ -136,12 +136,12 @@ void ASGPawn::BeginPlay() WristTrackerRight->OnWristLocationChanged().AddWeakLambda(this, [&](const FVector& Location)-> void { - HandRight->SetRelativeLocation(Location); + HandRight->SetWorldLocation(Location); }); WristTrackerRight->OnWristRotationChanged().AddWeakLambda(this, [&](const FRotator& Rotation)-> void { - HandRight->SetRelativeRotation(Rotation); + HandRight->SetWorldRotation(Rotation); }); }