44 if (
APixoVRHand* HandOwner = Cast<APixoVRHand>(GetParentActor()))
46 if(HandOwner->HandMotionSource == EControllerHand::Left)
53 FVector RelativeLocation = RootParent->GetRelativeLocation();
54 RootParent->SetRelativeLocation(RelativeLocation * FVector(1.0f, -1.0f, 1.0f));
55 RootParent->AddRelativeRotation(FRotator(0.0f, 0.0f, 180.0f));
66 Super::Tick(DeltaTime);
68 FVector WristMenuActivationDirection;
70 WristMenuActivationDirection = GetActorLocation() -
CameraManagerRef->GetCameraLocation();
71 WristMenuActivationDirection.Normalize();
73 const float WristMenuToActivationAngleDifference = FMath::RadiansToDegrees(FMath::Acos(FVector::DotProduct(GetActorUpVector() * -1.0f, WristMenuActivationDirection)));
75 bool bIsWristDirectionBetweenTolerance = WristMenuToActivationAngleDifference <
WristAngleTolerance;
79 if (!
WristMenuWidget->GetWidget()->GetClass()->ImplementsInterface(UWristMenuWidgetInterface::StaticClass())
80 || IWristMenuWidgetInterface::Execute_IsWidgetShouldBeDisplayed(
WristMenuWidget->GetWidget()))