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

Merge branch 'IntenSelect5.3' of...

Merge branch 'IntenSelect5.3' of https://git-ce.rwth-aachen.de/marcel.krueger/rwth-vr-toolkit into IntenSelect5.3
Merges request into local codebase
parents f707b650 1298dfef
No related branches found
No related tags found
2 merge requests!81Inten Select 5.3,!80UE5.3-2023.1-rc2
Pipeline #371802 failed
...@@ -112,7 +112,8 @@ void UDirectInteractionComponent::OnBeginInteraction(const FInputActionValue& Va ...@@ -112,7 +112,8 @@ void UDirectInteractionComponent::OnBeginInteraction(const FInputActionValue& Va
if (bOnlyInteractWithClosestActor) if (bOnlyInteractWithClosestActor)
{ {
auto MinElement = *Algo::MinElementBy( auto MinElement = *Algo::MinElementBy(
CurrentInteractableComponentsInRange, [&](auto Element) CurrentInteractableComponentsInRange,
[&](auto Element)
{ return FVector(Element->GetOwner()->GetActorLocation() - InteractionLocation).Size(); }); { return FVector(Element->GetOwner()->GetActorLocation() - InteractionLocation).Size(); });
MinElement->HandleOnActionStartEvents(this, InteractionInputAction, Value, EInteractorType::Direct); MinElement->HandleOnActionStartEvents(this, InteractionInputAction, Value, EInteractorType::Direct);
CurrentlyInteractedComponents = {MinElement}; CurrentlyInteractedComponents = {MinElement};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment