Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
RWTH VR Toolkit
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LuFG VR VIS
VR-Group
Unreal-Development
Plugins
RWTH VR Toolkit
Commits
6aa8a54d
Commit
6aa8a54d
authored
1 year ago
by
Timon Römer
Browse files
Options
Downloads
Patches
Plain Diff
Changes formating
parent
232b0771
No related branches found
No related tags found
1 merge request
!88
Merges IntenSelect 5.3 into dev 5.3
Pipeline
#399868
failed
1 year ago
Stage: analyze
Stage: generate
Stage: build
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp
+2
-1
2 additions, 1 deletion
...te/Interaction/Interactors/DirectInteractionComponent.cpp
with
2 additions
and
1 deletion
Source/RWTHVRToolkit/Private/Interaction/Interactors/DirectInteractionComponent.cpp
+
2
−
1
View file @
6aa8a54d
...
@@ -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
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment