diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 16270f07e90f5d1453defa37191fccc9ff894422..283c4f7419b87f79b92d997fd79ad06b3d256f1d 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -249,7 +249,9 @@ void ARWTHVRPawn::AttachDCRAtoPawn() if (!FoundActors.IsEmpty()) { CaveSetupActor = FoundActors[0]; - FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetIncludingScale; + FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::KeepRelativeTransform; + CaveSetupActor->SetActorLocation(GetActorLocation()); + CaveSetupActor->SetActorRotation(GetActorRotation()); CaveSetupActor->AttachToActor(this, AttachmentRules); UE_LOGFMT(Toolkit, Display, "VirtualRealityPawn: Attaching CaveSetup to our pawn!"); }