From 47aff0454cd2546ef54824084eea0b79d5f88e7d Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Mon, 15 Jul 2024 21:58:17 +0200 Subject: [PATCH] fix a bug where the sgpawn right-hand grab colliders' default size is mistakenly set to the default value for the left-hand grab colliders at cdo initialization time --- .../SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp index 2d653ff8..4ff6239d 100644 --- a/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp +++ b/Source/SenseGlove/Private/SenseGlove/GameFramework/SGPawn.cpp @@ -468,7 +468,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer) RightThumbFingertipGrabCollider = ObjectInitializer.CreateDefaultSubobject( this, TEXT("RightThumbFingertipGrabCollider")); - RightThumbFingertipGrabCollider->SetRelativeScale3D(HandLeft->GetDefaultFingertipsGrabColliderSize()); + RightThumbFingertipGrabCollider->SetRelativeScale3D(HandRight->GetDefaultFingertipsGrabColliderSize()); RightThumbFingertipGrabCollider->SetupAttachment(HandRight, HandRight->GetThumbFingertipGrabSocketName()); RightThumbFingertipGrabCollider->SetCastShadow(false); RightThumbFingertipGrabCollider->bCastDynamicShadow = false; @@ -488,7 +488,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer) RightIndexFingertipGrabCollider = ObjectInitializer.CreateDefaultSubobject( this, TEXT("RightIndexFingertipGrabCollider")); - RightIndexFingertipGrabCollider->SetRelativeScale3D(HandLeft->GetDefaultFingertipsGrabColliderSize()); + RightIndexFingertipGrabCollider->SetRelativeScale3D(HandRight->GetDefaultFingertipsGrabColliderSize()); RightIndexFingertipGrabCollider->SetupAttachment(HandRight, HandRight->GetIndexFingertipGrabSocketName()); RightIndexFingertipGrabCollider->SetCastShadow(false); RightIndexFingertipGrabCollider->bCastDynamicShadow = false; @@ -508,7 +508,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer) RightMiddleFingertipGrabCollider = ObjectInitializer.CreateDefaultSubobject( this, TEXT("RightMiddleFingertipGrabCollider")); - RightMiddleFingertipGrabCollider->SetRelativeScale3D(HandLeft->GetDefaultFingertipsGrabColliderSize()); + RightMiddleFingertipGrabCollider->SetRelativeScale3D(HandRight->GetDefaultFingertipsGrabColliderSize()); RightMiddleFingertipGrabCollider->SetupAttachment(HandRight, HandRight->GetMiddleFingertipGrabSocketName()); RightMiddleFingertipGrabCollider->SetCastShadow(false); RightMiddleFingertipGrabCollider->bCastDynamicShadow = false;