Skip to content

Commit e31ba9f

Browse files
docs(pawn): adds some more comments on qhy we need sync comp
1 parent 30245c2 commit e31ba9f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Source/RWTHVRToolkit/Private/Pawn/RWTHVRPawn.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ ARWTHVRPawn::ARWTHVRPawn(const FObjectInitializer& ObjectInitializer) : Super(Ob
3636
LeftHand = CreateDefaultSubobject<UReplicatedMotionControllerComponent>(TEXT("Left Hand MCC"));
3737
LeftHand->SetupAttachment(RootComponent);
3838

39-
// add a nDisplay
39+
// Add an nDisplay Parent Sync Component. It syncs the parent's transform from master to clients.
40+
// This is required because for collision based movement, it can happen that the physics engine
41+
// for some reason acts different on the nodes, therefore leading to a potential desync when
42+
// e.g. colliding with an object while moving.
4043
SyncComponent =
4144
CreateDefaultSubobject<UDisplayClusterSceneComponentSyncParent>(TEXT("Parent Display Cluster Sync Component"));
4245
SyncComponent->SetupAttachment(RootComponent);

0 commit comments

Comments
 (0)