diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGVirtualHand.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGVirtualHand.cpp index 59ddc7f3..a5ad006f 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGVirtualHand.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGVirtualHand.cpp @@ -362,17 +362,15 @@ TMap ASGVirtualHand::GetFingersBonesRotations() for (int32 JointIndex = 0; JointIndex < FingerJointAngles.Num(); ++JointIndex) { - const FVector& JointAngle{FMath::RadiansToDegrees(FingerJointAngles[JointIndex])}; + const FVector& JointAngle{FingerJointAngles[JointIndex]}; const FQuat JointRotation{FQuat::MakeFromEuler(JointAngle)}; const FTransform& BoneRefTransform{GetFingerBoneRefTransform(FingerIndex, JointIndex)}; - FQuat NewBoneRotation{JointRotation * BoneRefTransform.GetRotation()}; + FQuat NewBoneRotation{BoneRefTransform.GetRotation() * JointRotation}; FName BoneName{GetFingerBoneName(FingerIndex, JointIndex)}; - SGLOG(BoneName, JointRotation.Rotator(), BoneRefTransform.Rotator(), NewBoneRotation); - Rotations.Emplace(MoveTemp(BoneName), MoveTemp(NewBoneRotation)); } }