From 6aa8a54d2ee092758ddff5dc9dfd80f0f79c0903 Mon Sep 17 00:00:00 2001 From: Timon Roemer <t.roemer@vis.rwth-aachen.de> Date: Wed, 8 May 2024 13:13:29 +0200 Subject: [PATCH] Changes formating --- .../Interaction/Interactors/DirectInteractionComponent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp b/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp index 5de410ff..c8cf9ce3 100644 --- a/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp +++ b/Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp @@ -112,7 +112,8 @@ void UDirectInteractionComponent::OnBeginInteraction(const FInputActionValue& Va if (bOnlyInteractWithClosestActor) { auto MinElement = *Algo::MinElementBy( - CurrentInteractableComponentsInRange, [&](auto Element) + CurrentInteractableComponentsInRange, + [&](auto Element) { return FVector(Element->GetOwner()->GetActorLocation() - InteractionLocation).Size(); }); MinElement->HandleOnActionStartEvents(this, InteractionInputAction, Value, EInteractorType::Direct); CurrentlyInteractedComponents = {MinElement}; -- GitLab