From 318ba5283558ae8c40a4117f16e41086fe419a14 Mon Sep 17 00:00:00 2001 From: Mamadou Babaei Date: Thu, 18 May 2023 21:18:26 +0200 Subject: [PATCH] set the default attachment rotation rule to keep relative --- .../Private/SenseGlove/Components/SGGrabComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp b/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp index 0ab47a9c..f8e225f9 100644 --- a/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp +++ b/Source/SenseGlove/Private/SenseGlove/Components/SGGrabComponent.cpp @@ -100,7 +100,7 @@ USGGrabComponent::USGGrabComponent(const FObjectInitializer& ObjectInitializer) Pimpl(TUniquePtr(new FImpl{this}, PimplDeleter)) { AttachmentLocationRule = EAttachmentRule::SnapToTarget; - AttachmentRotationRule = EAttachmentRule::SnapToTarget; + AttachmentRotationRule = EAttachmentRule::KeepRelative; AttachmentScaleRule = EAttachmentRule::KeepWorld; bAttachmentWeldSimulatedBodies = true;