Skip to content
Snippets Groups Projects
Commit c7b2dfc2 authored by Daniel Rupp's avatar Daniel Rupp
Browse files

Keep Relative Transform of Cave Actor, only scale pawn around it

parent ef9c937e
No related branches found
No related tags found
No related merge requests found
Pipeline #424711 failed
...@@ -249,7 +249,9 @@ void ARWTHVRPawn::AttachDCRAtoPawn() ...@@ -249,7 +249,9 @@ void ARWTHVRPawn::AttachDCRAtoPawn()
if (!FoundActors.IsEmpty()) if (!FoundActors.IsEmpty())
{ {
CaveSetupActor = FoundActors[0]; CaveSetupActor = FoundActors[0];
FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::SnapToTargetIncludingScale; FAttachmentTransformRules AttachmentRules = FAttachmentTransformRules::KeepRelativeTransform;
CaveSetupActor->SetActorLocation(GetActorLocation());
CaveSetupActor->SetActorRotation(GetActorRotation());
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