even more optimal fxrmotioncontroller data calculations that considers mesh when outputting senseglove data

This commit is contained in:
Mamadou Babaei
2024-08-16 16:34:10 +02:00
parent bd385651c3
commit 2ba37dc56d
3 changed files with 157 additions and 250 deletions
@@ -46,8 +46,7 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings()
2.4f,
2.4f,
2.4f,
FRotator{0.0f, -90.0f, 0.0f},
FRotator{0.0f, 180.0f, 90.0f})
FRotator{0.0f, -90.0f, 0.0f})
{
}
@@ -59,8 +58,7 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings(
const float InMiddleDistalPhalanxLength,
const float InRingDistalPhalanxLength,
const float InLittleDistalPhalanxLength,
const FRotator& InHandMeshToOpenXRRootBoneRotationCorrection,
const FRotator& InHandMeshToSenseGloveRootBoneRotationCorrection)
const FRotator& InRootBoneRotationCorrection)
: LeftHandReferenceMesh(InLeftHandReferenceMesh),
RightHandReferenceMesh(InRightHandReferenceMesh),
ThumbDistalPhalanxLength(InThumbDistalPhalanxLength),
@@ -68,8 +66,7 @@ FSGVirtualHandTrackingSettings::FSGVirtualHandTrackingSettings(
MiddleDistalPhalanxLength(InMiddleDistalPhalanxLength),
RingDistalPhalanxLength(InRingDistalPhalanxLength),
LittleDistalPhalanxLength(InLittleDistalPhalanxLength),
HandMeshToOpenXRRootBoneRotationCorrection(InHandMeshToOpenXRRootBoneRotationCorrection),
HandMeshToSenseGloveRootBoneRotationCorrection(InHandMeshToSenseGloveRootBoneRotationCorrection),
RootBoneRotationCorrection(InRootBoneRotationCorrection),
LeftHandDefaultReferenceBoneTransforms{
TPair<FName, FTransform>{
FName{TEXT("hand_l")},
@@ -73,10 +73,7 @@ public:
float LittleDistalPhalanxLength;
UPROPERTY(Config, EditDefaultsOnly, Category="Virtual Hand")
FRotator HandMeshToOpenXRRootBoneRotationCorrection;
UPROPERTY(Config, EditDefaultsOnly, Category="Virtual Hand")
FRotator HandMeshToSenseGloveRootBoneRotationCorrection;
FRotator RootBoneRotationCorrection;
UPROPERTY(Config, VisibleDefaultsOnly, Category="Virtual Hand")
TMap<FName, FTransform> LeftHandDefaultReferenceBoneTransforms;
@@ -101,7 +98,5 @@ public:
float InMiddleDistalPhalanxLength,
float InRingDistalPhalanxLength,
float InLittleDistalPhalanxLength,
const FRotator& InHandMeshToOpenXRRootBoneRotationCorrection,
const FRotator& InHandMeshToSenseGloveRootBoneRotationCorrection);
const FRotator& InRootBoneRotationCorrection);
};