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
8bb2a43d
Commit
8bb2a43d
authored
1 year ago
by
David Gilbert
Browse files
Options
Downloads
Patches
Plain Diff
fix(cave): Fixes an issues with DCRA attachment to pawn, a bracket was at the wrong place.
parent
807b1a54
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
+3
-2
3 additions, 2 deletions
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
with
3 additions
and
2 deletions
Source/RWTHVRToolkit/Private/Pawn/VirtualRealityPawn.cpp
+
3
−
2
View file @
8bb2a43d
...
@@ -64,8 +64,8 @@ void AVirtualRealityPawn::NotifyControllerChanged()
...
@@ -64,8 +64,8 @@ void AVirtualRealityPawn::NotifyControllerChanged()
if
(
IsLocallyControlled
())
if
(
IsLocallyControlled
())
{
{
// Only do this for the primary node or when we're running in standalone
// Only do this for the primary node or when we're running in standalone
if
(
UVirtualRealityUtilities
::
IsRoomMountedMode
()
&&
(
UVirtualRealityUtilities
::
IsPrimaryNode
()
||
GetNetMode
())
if
(
UVirtualRealityUtilities
::
IsRoomMountedMode
()
&&
(
UVirtualRealityUtilities
::
IsPrimaryNode
()
||
==
NM_Standalone
)
GetNetMode
()
==
NM_Standalone
)
)
{
{
// If we are also the authority (standalone or listen server), directly attach it to us.
// If we are also the authority (standalone or listen server), directly attach it to us.
// If we are not (client), ask the server to do it.
// If we are not (client), ask the server to do it.
...
@@ -200,6 +200,7 @@ void AVirtualRealityPawn::AttachDCRAtoPawn()
...
@@ -200,6 +200,7 @@ void AVirtualRealityPawn::AttachDCRAtoPawn()
FAttachmentTransformRules
AttachmentRules
=
FAttachmentTransformRules
::
SnapToTargetNotIncludingScale
;
FAttachmentTransformRules
AttachmentRules
=
FAttachmentTransformRules
::
SnapToTargetNotIncludingScale
;
AttachmentRules
.
RotationRule
=
EAttachmentRule
::
KeepWorld
;
AttachmentRules
.
RotationRule
=
EAttachmentRule
::
KeepWorld
;
CaveSetupActor
->
AttachToActor
(
this
,
AttachmentRules
);
CaveSetupActor
->
AttachToActor
(
this
,
AttachmentRules
);
UE_LOGFMT
(
Toolkit
,
Display
,
"VirtualRealityPawn: Attaching CaveSetup to our pawn!"
);
}
}
else
else
{
{
...
...
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