diff --git a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp index 6e88a3cb3c08f7bdef2d9c9a29d2881be0ba2899..5a84da66b664d3070c5c71bd6242d42f96ab6910 100644 --- a/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp +++ b/Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp @@ -36,7 +36,8 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob LeftHand = CreateDefaultSubobject<UReplicatedMotionControllerComponent>(TEXT("Left Hand MCC")); LeftHand->SetupAttachment(RootComponent); - + +#if 0 // Add an nDisplay Parent Sync Component. It syncs the parent's transform from master to clients. // 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 @@ -44,6 +45,7 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob SyncComponent = CreateDefaultSubobject<UDisplayClusterSceneComponentSyncParent>(TEXT("Parent Display Cluster Sync Component")); SyncComponent->SetupAttachment(RootComponent); +#endif } void ARWTHVRPawn::Tick(float DeltaSeconds) diff --git a/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h b/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h index ca774d3766c41da61f095c06e27ceaa115324094..b171d3f1f9213744628e9c1501bc52a3248418dc 100644 --- a/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h +++ b/Source/RWTHVRToolkit/Public/Pawn/RWTHVRPawn.h @@ -6,7 +6,9 @@ #include "LiveLinkRole.h" #include "Pawn/Navigation/CollisionHandlingMovement.h" +#if 0 #include "Components/DisplayClusterSceneComponentSyncParent.h" +#endif #include "RWTHVRPawn.generated.h" @@ -55,7 +57,7 @@ public: UCameraComponent* HeadCameraComponent; UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera") - UDisplayClusterSceneComponentSyncParent* SyncComponent; + USceneComponent* SyncComponent; // LiveLink functionality