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

Merge branch 'feature/pawn_cluster_sync' into 'dev/5.3'

add sync component to pawn

See merge request !61
parents 0917d8d1 e31ba9ff
Branches ravaflow3g
No related tags found
1 merge request!61add sync component to pawn
...@@ -35,6 +35,14 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob ...@@ -35,6 +35,14 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob
LeftHand = CreateDefaultSubobject<UReplicatedMotionControllerComponent>(TEXT("Left Hand MCC")); LeftHand = CreateDefaultSubobject<UReplicatedMotionControllerComponent>(TEXT("Left Hand MCC"));
LeftHand->SetupAttachment(RootComponent); LeftHand->SetupAttachment(RootComponent);
// 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
// e.g. colliding with an object while moving.
SyncComponent =
CreateDefaultSubobject<UDisplayClusterSceneComponentSyncParent>(TEXT("Parent Display Cluster Sync Component"));
SyncComponent->SetupAttachment(RootComponent);
} }
void ARWTHVRPawn::Tick(float DeltaSeconds) void ARWTHVRPawn::Tick(float DeltaSeconds)
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
#include "CoreMinimal.h" #include "CoreMinimal.h"
#include "LiveLinkRole.h" #include "LiveLinkRole.h"
#include "Pawn/Navigation/CollisionHandlingMovement.h" #include "Pawn/Navigation/CollisionHandlingMovement.h"
#include "Components/DisplayClusterSceneComponentSyncParent.h"
#include "RWTHVRPawn.generated.h" #include "RWTHVRPawn.generated.h"
class UInputMappingContext; class UInputMappingContext;
...@@ -48,6 +51,9 @@ public: ...@@ -48,6 +51,9 @@ public:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera") UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera")
UCameraComponent* HeadCameraComponent; UCameraComponent* HeadCameraComponent;
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Pawn|Camera")
UDisplayClusterSceneComponentSyncParent* SyncComponent;
// LiveLink functionality // LiveLink functionality
/* Set whether nDisplay should disable LiveLink tracking*/ /* 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