Skip to content
Snippets Groups Projects
Commit 67a8a9cc authored by David Gilbert's avatar David Gilbert :bug:
Browse files

fix(cave): Fixes attachement of CaveSetup to pawn, rotation now snaps correcly. Closes #644.

parent 46e82b7c
Branches
No related tags found
1 merge request!80UE5.3-2023.1-rc2
...@@ -245,7 +245,6 @@ void ARWTHVRPawn::AttachDCRAtoPawn() ...@@ -245,7 +245,6 @@ void ARWTHVRPawn::AttachDCRAtoPawn()
{ {
const auto CaveSetupActor = FoundActors[0]; const auto CaveSetupActor = FoundActors[0];
FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetNotIncludingScale; FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetNotIncludingScale;
AttachmentRules.RotationRule = EAttachmentRule::KeepWorld;
CaveSetupActor->AttachToActor(this, AttachmentRules); CaveSetupActor->AttachToActor(this, AttachmentRules);
UE_LOGFMT(Toolkit, Display, "VirtualRealityPawn: Attaching CaveSetup to our pawn!"); UE_LOGFMT(Toolkit, Display, "VirtualRealityPawn: Attaching CaveSetup to our pawn!");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment