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
002dc5c5
Commit
002dc5c5
authored
3 years ago
by
Ehret
Browse files
Options
Downloads
Patches
Plain Diff
add moving up
parent
b0cf4ff6
No related branches found
No related tags found
3 merge requests
!22
Get changes and fixes from 4.26 into 5 as well
,
!16
update 4.27 branch to newest changes in 4.26
,
!15
Improve desktop test interaction
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
+9
-0
9 additions, 0 deletions
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
Source/RWTHVRToolkit/Public/Pawn/VirtualRealityPawn.h
+1
-0
1 addition, 0 deletions
Source/RWTHVRToolkit/Public/Pawn/VirtualRealityPawn.h
with
10 additions
and
0 deletions
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
+
9
−
0
View file @
002dc5c5
...
@@ -56,6 +56,7 @@ void AVirtualRealityPawn::SetupPlayerInputComponent(UInputComponent* PlayerInput
...
@@ -56,6 +56,7 @@ void AVirtualRealityPawn::SetupPlayerInputComponent(UInputComponent* PlayerInput
PlayerInputComponent
->
BindAxis
(
"MoveForward"
,
this
,
&
AVirtualRealityPawn
::
OnForward
);
PlayerInputComponent
->
BindAxis
(
"MoveForward"
,
this
,
&
AVirtualRealityPawn
::
OnForward
);
PlayerInputComponent
->
BindAxis
(
"MoveRight"
,
this
,
&
AVirtualRealityPawn
::
OnRight
);
PlayerInputComponent
->
BindAxis
(
"MoveRight"
,
this
,
&
AVirtualRealityPawn
::
OnRight
);
PlayerInputComponent
->
BindAxis
(
"MoveUp"
,
this
,
&
AVirtualRealityPawn
::
OnUp
);
PlayerInputComponent
->
BindAxis
(
"TurnRate"
,
this
,
&
AVirtualRealityPawn
::
OnTurnRate
);
PlayerInputComponent
->
BindAxis
(
"TurnRate"
,
this
,
&
AVirtualRealityPawn
::
OnTurnRate
);
PlayerInputComponent
->
BindAxis
(
"LookUpRate"
,
this
,
&
AVirtualRealityPawn
::
OnLookUpRate
);
PlayerInputComponent
->
BindAxis
(
"LookUpRate"
,
this
,
&
AVirtualRealityPawn
::
OnLookUpRate
);
...
@@ -90,6 +91,14 @@ void AVirtualRealityPawn::OnRight_Implementation(float Value)
...
@@ -90,6 +91,14 @@ void AVirtualRealityPawn::OnRight_Implementation(float Value)
}
}
}
}
void
AVirtualRealityPawn
::
OnUp_Implementation
(
float
Value
)
{
if
(
RightHand
)
{
AddMovementInput
(
RightHand
->
GetUpVector
(),
Value
);
}
}
void
AVirtualRealityPawn
::
OnTurnRate_Implementation
(
float
Rate
)
void
AVirtualRealityPawn
::
OnTurnRate_Implementation
(
float
Rate
)
{
{
/* Turning the user externally will make them sick */
/* Turning the user externally will make them sick */
...
...
This diff is collapsed.
Click to expand it.
Source/RWTHVRToolkit/Public/Pawn/VirtualRealityPawn.h
+
1
−
0
View file @
002dc5c5
...
@@ -40,6 +40,7 @@ protected:
...
@@ -40,6 +40,7 @@ protected:
/* Movement */
/* Movement */
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnForward
(
float
Value
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnForward
(
float
Value
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnRight
(
float
Value
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnRight
(
float
Value
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnUp
(
float
Value
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnTurnRate
(
float
Rate
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnTurnRate
(
float
Rate
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnLookUpRate
(
float
Rate
);
UFUNCTION
(
BlueprintNativeEvent
,
BlueprintCallable
,
Category
=
"Pawn|Movement"
)
void
OnLookUpRate
(
float
Rate
);
...
...
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