From 67a8a9cc62dede37d0d6f6b0b47541a5339f519c Mon Sep 17 00:00:00 2001 From: David Gilbert <gilbert@vr.rwth-aachen.de> Date: Mon, 8 Jan 2024 13:18:59 +0100 Subject: [PATCH] fix(cave): Fixes attachement of CaveSetup to pawn, rotation now snaps correcly. Closes #644. --- Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index bb90198d..6e88a3cb 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -245,7 +245,6 @@ void ARWTHVRPawn::AttachDCRAtoPawn() { const auto CaveSetupActor = FoundActors[0]; FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetNotIncludingScale; - AttachmentRules.RotationRule = EAttachmentRule::KeepWorld; CaveSetupActor->AttachToActor(this, AttachmentRules); UE_LOGFMT(Toolkit, Display, "VirtualRealityPawn: Attaching CaveSetup to our pawn!"); } -- GitLab