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
4a7be9f6
Commit
4a7be9f6
authored
Jul 19, 2022
by
Marcel Krüger
Browse files
Options
Downloads
Patches
Plain Diff
Expose maxClick and maxGrab distance
parent
285b54e8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/RWTHVRToolkit/Private/Pawn/BasicVRInteractionComponent.cpp
+1
-1
1 addition, 1 deletion
...WTHVRToolkit/Private/Pawn/BasicVRInteractionComponent.cpp
Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h
+2
-2
2 additions, 2 deletions
...e/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h
with
3 additions
and
3 deletions
Source/RWTHVRToolkit/Private/Pawn/BasicVRInteractionComponent.cpp
+
1
−
1
View file @
4a7be9f6
...
...
@@ -41,7 +41,7 @@ void UBasicVRInteractionComponent::BeginPlay()
Super
::
BeginPlay
();
//WidgetInteractionComponent
InteractionDistance
=
MaxClickDistance
;
//
InteractionDistance = MaxClickDistance;
SetInteractionRayVisibility
(
InteractionRayVisibility
);
}
...
...
This diff is collapsed.
Click to expand it.
Source/RWTHVRToolkit/Public/Pawn/BasicVRInteractionComponent.h
+
2
−
2
View file @
4a7be9f6
...
...
@@ -36,8 +36,8 @@ public:
// Called every frame
virtual
void
TickComponent
(
float
DeltaTime
,
ELevelTick
TickType
,
FActorComponentTickFunction
*
ThisTickFunction
)
override
;
UPROPERTY
(
BlueprintReadWrite
)
float
MaxGrabDistance
=
50
;
UPROPERTY
(
BlueprintReadWrite
)
float
MaxClickDistance
=
500
;
UPROPERTY
(
EditAnywhere
,
BlueprintReadWrite
)
float
MaxGrabDistance
=
50
;
UPROPERTY
(
EditAnywhere
,
BlueprintReadWrite
)
float
MaxClickDistance
=
500
;
// Enable this if you want to interact with Targetable classes or use EInteractionRayVisibility::VisibleOnHoverOnly
UPROPERTY
(
EditAnywhere
)
bool
bCanRaytraceEveryTick
=
false
;
UPROPERTY
(
EditAnywhere
)
TEnumAsByte
<
EInteractionRayVisibility
>
InteractionRayVisibility
=
EInteractionRayVisibility
::
Invisible
;
...
...
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