Skip to content
Snippets Groups Projects
Commit 0c95a467 authored by Daniel Rupp's avatar Daniel Rupp
Browse files

added fix for controller in desktop mode

parent bcb78362
Branches
Tags
1 merge request!30Replace LiveLink UniversalTrackedComponent implementation by MotionControllers
......@@ -34,6 +34,13 @@ AVirtualRealityPawn::AVirtualRealityPawn(const FObjectInitializer& ObjectInitial
RightHand = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("Right Hand MCC"));
RightHand->SetupAttachment(RootComponent);
if(UVirtualRealityUtilities::IsDesktopMode())
{
RightHand->SetEnableGravity(false);
RightHand->SetRelativeLocation(FVector(30,15,BaseEyeHeight-20));
}
LeftHand = CreateDefaultSubobject<UMotionControllerComponent>(TEXT("Left Hand MCC"));
LeftHand->SetupAttachment(RootComponent);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment