Skip to content
Snippets Groups Projects
Commit 609a157a authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

fix(pawn): add sync component to pawn

parent 0917d8d1
No related branches found
No related tags found
1 merge request!61add sync component to pawn
......@@ -35,6 +35,12 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob
LeftHand = CreateDefaultSubobject<UReplicatedMotionControllerComponent>(TEXT("Left Hand MCC"));
LeftHand->SetupAttachment(RootComponent);
// add a nDisplay
SyncComponent =
CreateDefaultSubobject<UDisplayClusterSceneComponentSyncParent>(TEXT("Parent Display Cluster Sync Component"));
SyncComponent->SetupAttachment(RootComponent);
}
void ARWTHVRPawn::Tick(float DeltaSeconds)
......
......@@ -5,6 +5,9 @@
#include "CoreMinimal.h"
#include "LiveLinkRole.h"
#include "Pawn/Navigation/CollisionHandlingMovement.h"
#include "Components/DisplayClusterSceneComponentSyncParent.h"
#include "RWTHVRPawn.generated.h"
class UInputMappingContext;
......@@ -48,6 +51,9 @@ public:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera")
UCameraComponent* HeadCameraComponent;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera")
UDisplayClusterSceneComponentSyncParent* SyncComponent;
// LiveLink functionality
/* Set whether nDisplay should disable LiveLink tracking*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment