Skip to content
Snippets Groups Projects
Commit 6aa8a54d authored by Timon Römer's avatar Timon Römer
Browse files

Changes formating

parent 232b0771
No related branches found
No related tags found
1 merge request!88Merges IntenSelect 5.3 into dev 5.3
Pipeline #399868 failed
......@@ -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};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment