diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 28eb764a59ca38694d676b5e0809c9a9622a14b1..6208098604717f8da222341f57405d74acca6cbe 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -50,9 +50,11 @@ void ARWTHVRPawn::BeginPlay() // This is required because for collision based movement, it can happen that the physics engine // for some reason acts different on the nodes, therefore leading to a potential desync when // e.g. colliding with an object while moving. - SyncComponent = NewObject<UDisplayClusterSceneComponentSyncParent>(); - SyncComponent->SetupAttachment(RootComponent); + SyncComponent = NewObject<UDisplayClusterSceneComponentSyncParent>(this); + // SyncComponent->SetupAttachment(RootComponent); SyncComponent->RegisterComponent(); + + SyncComponent->AttachToComponent(RootComponent, FAttachmentTransformRules::SnapToTargetNotIncludingScale); #endif }