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
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
Daniel Rupp
RWTH VR Toolkit
Commits
cf986781
Commit
cf986781
authored
1 year ago
by
Daniel Rupp
Browse files
Options
Downloads
Patches
Plain Diff
feature(scaling): cave actor should scale according to vr pawn
parent
c7b2dfc2
Branches
feature/scaleTeleport
No related tags found
No related merge requests found
Pipeline
#424729
failed
1 year ago
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp
+5
-5
5 additions, 5 deletions
...WTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp
with
5 additions
and
5 deletions
Source/RWTHVRToolkit/Private/Pawn/Navigation/ScalingComponent.cpp
+
5
−
5
View file @
cf986781
...
...
@@ -87,8 +87,8 @@ void UScalingComponent::BeginPlay()
// in case of cave, also at this to the equal sized components
if
(
VRPawn
->
CaveSetupActor
)
{
//
UE_LOG(LogTemp,Display,TEXT("Cave Setup Actor is valid and will be added to equal Sized objects"))
//
AddEqualSizedActor(VRPawn->CaveSetupActor);
UE_LOG
(
LogTemp
,
Display
,
TEXT
(
"Cave Setup Actor is valid and will be added to equal Sized objects"
))
AddEqualSizedActor
(
VRPawn
->
CaveSetupActor
);
}
else
{
UE_LOG
(
LogTemp
,
Display
,
TEXT
(
"Cave Setup Actor is invalid in ScalingComponent::BeginPlay()"
))
...
...
@@ -126,7 +126,7 @@ void UScalingComponent::OnGrow(const FInputActionValue& InputActionValue)
float
PreviousScale
=
CurrentW2MScale
;
// store for computing scale ratio
CurrentW2MScale
=
CurrentW2MScale
*
(
1
+
ScaleStepSize
);
GNearClippingPlane
=
CurrentW2MScale
;
//
GNearClippingPlane = CurrentW2MScale;
FloatingPawnMovement
->
Acceleration
=
DefaultAcceleration
*
CurrentW2MScale
/
100
;
FloatingPawnMovement
->
Deceleration
=
DefaultDeceleration
*
CurrentW2MScale
/
100
;
...
...
@@ -156,7 +156,7 @@ void UScalingComponent::OnShrink(const FInputActionValue& InputActionValue)
float
PreviousScale
=
CurrentW2MScale
;
// store for computing scale ratio
CurrentW2MScale
=
CurrentW2MScale
/
(
1.f
+
ScaleStepSize
);
GNearClippingPlane
=
CurrentW2MScale
;
//
GNearClippingPlane = CurrentW2MScale;
FloatingPawnMovement
->
Acceleration
=
DefaultAcceleration
*
CurrentW2MScale
/
100
;
FloatingPawnMovement
->
Deceleration
=
DefaultDeceleration
*
CurrentW2MScale
/
100
;
FloatingPawnMovement
->
MaxSpeed
=
DefaultMaxSpeed
*
CurrentW2MScale
/
100
;
...
...
@@ -187,7 +187,7 @@ void UScalingComponent::OnResetScale(const FInputActionValue& InputActionValue)
float
CurrentW2MScale
=
UHeadMountedDisplayFunctionLibrary
::
GetWorldToMetersScale
(
GetOwner
()
->
GetWorld
());
float
PreviousScale
=
CurrentW2MScale
;
// store for computing scale ratio
CurrentW2MScale
=
OriginalScale
;
GNearClippingPlane
=
CurrentW2MScale
;
//
GNearClippingPlane = CurrentW2MScale;
FloatingPawnMovement
->
Acceleration
=
DefaultAcceleration
*
CurrentW2MScale
/
100
;
FloatingPawnMovement
->
Deceleration
=
DefaultDeceleration
*
CurrentW2MScale
/
100
;
...
...
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