fix the hand right hand offset

This commit is contained in:
Mamadou Babaei
2023-04-25 17:01:59 +02:00
parent d48a908ae7
commit 017bf6e334
@@ -136,12 +136,12 @@ void ASGPawn::BeginPlay()
WristTrackerRight->OnWristLocationChanged().AddWeakLambda(this, [&](const FVector& Location)-> void WristTrackerRight->OnWristLocationChanged().AddWeakLambda(this, [&](const FVector& Location)-> void
{ {
HandRight->SetRelativeLocation(Location); HandRight->SetWorldLocation(Location);
}); });
WristTrackerRight->OnWristRotationChanged().AddWeakLambda(this, [&](const FRotator& Rotation)-> void WristTrackerRight->OnWristRotationChanged().AddWeakLambda(this, [&](const FRotator& Rotation)-> void
{ {
HandRight->SetRelativeRotation(Rotation); HandRight->SetWorldRotation(Rotation);
}); });
} }