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
73ed206b
Commit
73ed206b
authored
3 years ago
by
Ehret
Browse files
Options
Downloads
Patches
Plain Diff
use capsule traces instead of line traces and a lot of restructuring
parent
b0cf4ff6
No related branches found
No related tags found
2 merge requests
!28
Improve Walking implementation
,
!13
Draft: Improve walking implementation
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/RWTHVRToolkit/Public/Pawn/VRPawnMovement.h
+5
-6
5 additions, 6 deletions
Source/RWTHVRToolkit/Public/Pawn/VRPawnMovement.h
with
5 additions
and
6 deletions
Source/RWTHVRToolkit/Public/Pawn/VRPawnMovement.h
+
5
−
6
View file @
73ed206b
...
...
@@ -47,7 +47,7 @@ public:
float
MaxStepHeight
=
40.0f
;
UPROPERTY
(
EditAnywhere
,
BlueprintReadWrite
,
Category
=
"VR Movement"
)
float
GravityAcceleration
=
981.0f
;
float
GravityAcceleration
=
-
981.0f
;
UPROPERTY
(
EditAnywhere
,
BlueprintReadWrite
,
Category
=
"VR Movement"
)
float
UpSteppingAcceleration
=
500.0f
;
...
...
@@ -56,14 +56,13 @@ public:
float
CapsuleRadius
=
40.0f
;
private:
FHitResult
CreateLineTrace
(
FVector
Direction
,
const
FVector
Start
,
bool
Visibility
);
FHitResult
Create
MultiLineTrace
(
FVector
Direction
,
const
FVector
Start
,
float
Radius
,
bool
Visibility
)
;
//check for
FHitResult
Create
CapsuleTrace
(
const
FVector
Start
,
FVector
End
,
bool
DrawDebug
)
const
;
void
SetCapsuleColliderToUserSize
();
void
CheckForPhysWalkingCollision
();
bool
CheckForVirtual
Mov
Collision
(
FVector
PositionChange
,
float
DeltaTime
);
bool
CheckForVirtual
Steer
Collision
(
FVector
PositionChange
,
float
DeltaTime
);
void
MoveByGravityOrStepUp
(
float
DeltaSeconds
);
void
ShiftVertically
(
float
DiffernceDistance
,
float
VerticalAcceleration
,
float
DeltaSeconds
,
int
Direction
);
//(direction = Down = -1), (direction = Up = 1)
void
ShiftVertically
(
float
Distance
,
float
VerticalAcceleration
,
float
DeltaSeconds
);
UPROPERTY
(
VisibleAnywhere
)
UCapsuleComponent
*
CapsuleColliderComponent
=
nullptr
;
UPROPERTY
()
USceneComponent
*
HeadComponent
=
nullptr
;
...
...
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