unfinished improvements based on the last commit

This commit is contained in:
Mamadou Babaei
2024-08-16 18:01:36 +02:00
parent b68faeeb7e
commit ec7eb93ed7
3 changed files with 182 additions and 51 deletions
@@ -41,12 +41,13 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings()
: FSGVirtualHandTrackingSettings(
nullptr,
nullptr,
1.0f,
1.0f,
1.0f,
1.0f,
1.0f,
FRotator{0.0f, -90.0f, 0.0f})
1.4f,
1.4f,
1.4f,
1.4f,
1.4f,
FRotator{0.0f, -90.0f, 0.0f},
FRotator{0.0f, 180.0f, 90.0f})
{
}
@@ -58,7 +59,8 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings(
const float InMiddleDistalPhalanxLength,
const float InRingDistalPhalanxLength,
const float InLittleDistalPhalanxLength,
const FRotator& InHandRootBoneRotationCorrection)
const FRotator& InHandMeshToOpenXRRootBoneRotationCorrection,
const FRotator& InHandMeshToSenseGloveRootBoneRotationCorrection)
: LeftHandReferenceMesh(InLeftHandReferenceMesh),
RightHandReferenceMesh(InRightHandReferenceMesh),
ThumbDistalPhalanxLength(InThumbDistalPhalanxLength),
@@ -66,7 +68,8 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings(
MiddleDistalPhalanxLength(InMiddleDistalPhalanxLength),
RingDistalPhalanxLength(InRingDistalPhalanxLength),
LittleDistalPhalanxLength(InLittleDistalPhalanxLength),
HandRootBoneRotationCorrection(InHandRootBoneRotationCorrection),
HandMeshToOpenXRRootBoneRotationCorrection(InHandMeshToOpenXRRootBoneRotationCorrection),
HandMeshToSenseGloveRootBoneRotationCorrection(InHandMeshToSenseGloveRootBoneRotationCorrection),
LeftHandDefaultReferenceBoneTransforms{
TPair<FName, FTransform>{
FName{TEXT("hand_l")},
@@ -73,7 +73,10 @@ public:
float LittleDistalPhalanxLength;
UPROPERTY(Config, EditDefaultsOnly, Category="Virtual Hand")
FRotator HandRootBoneRotationCorrection;
FRotator HandMeshToOpenXRRootBoneRotationCorrection;
UPROPERTY(Config, EditDefaultsOnly, Category="Virtual Hand")
FRotator HandMeshToSenseGloveRootBoneRotationCorrection;
UPROPERTY(Config, VisibleDefaultsOnly, Category="Virtual Hand")
TMap<FName, FTransform> LeftHandDefaultReferenceBoneTransforms;
@@ -98,6 +101,7 @@ public:
float InMiddleDistalPhalanxLength,
float InRingDistalPhalanxLength,
float InLittleDistalPhalanxLength,
const FRotator& InHandRootBoneRotationCorrection);
const FRotator& InHandMeshToOpenXRRootBoneRotationCorrection,
const FRotator& InHandMeshToSenseGloveRootBoneRotationCorrection);
};