explicitly assign motion controllers to the proper hands
This commit is contained in:
@@ -90,6 +90,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer)
|
||||
MotionControllerLeft->SetCanEverAffectNavigation(false);
|
||||
MotionControllerLeft->SetWorldLocation(FVector{30.0f, -20.0f, -10.0f},
|
||||
false, nullptr, ETeleportType::None);
|
||||
MotionControllerLeft->SetTrackingSource(EControllerHand::Left);
|
||||
|
||||
HandLeft = ObjectInitializer.CreateDefaultSubobject<USGVirtualHandComponent>(this, TEXT("HandLeft"));
|
||||
HandLeft->SetupAttachment(MotionControllerLeft);
|
||||
@@ -103,6 +104,7 @@ ASGPawn::ASGPawn(const FObjectInitializer& ObjectInitializer)
|
||||
MotionControllerRight->SetCanEverAffectNavigation(false);
|
||||
MotionControllerRight->SetWorldLocation(FVector{30.0f, 20.0f, -10.0f},
|
||||
false, nullptr, ETeleportType::None);
|
||||
MotionControllerRight->SetTrackingSource(EControllerHand::Left);
|
||||
|
||||
HandRight = ObjectInitializer.CreateDefaultSubobject<USGVirtualHandComponent>(this, TEXT("HandRight"));
|
||||
HandRight->SetupAttachment(MotionControllerRight);
|
||||
|
||||
Reference in New Issue
Block a user