Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Character Plugin
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
Character Plugin
Commits
2c395fc9
Commit
2c395fc9
authored
2 years ago
by
Jonathan Ehret
Browse files
Options
Downloads
Patches
Plain Diff
remove debug code from backchannel nodding
parent
a9a1987d
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/CharacterPlugin/Private/VHListenerBackchannels.cpp
+0
-5
0 additions, 5 deletions
Source/CharacterPlugin/Private/VHListenerBackchannels.cpp
with
0 additions
and
5 deletions
Source/CharacterPlugin/Private/VHListenerBackchannels.cpp
+
0
−
5
View file @
2c395fc9
...
@@ -49,12 +49,7 @@ void UVHListenerBackchannels::TickComponent(float DeltaTime, ELevelTick TickType
...
@@ -49,12 +49,7 @@ void UVHListenerBackchannels::TickComponent(float DeltaTime, ELevelTick TickType
float
HeadPitch
=
-
cos
((
NoddingTime
*
2
*
PI
)
/
ActualNodDuration
)
*
ActualNodAmplitude
+
ActualNodAmplitude
;
float
HeadPitch
=
-
cos
((
NoddingTime
*
2
*
PI
)
/
ActualNodDuration
)
*
ActualNodAmplitude
+
ActualNodAmplitude
;
//decrease over time, e.g., if more than one nod is played
//decrease over time, e.g., if more than one nod is played
HeadPitch
*=
(
ActualNodLength
-
NoddingTime
)
/
ActualNodLength
;
HeadPitch
*=
(
ActualNodLength
-
NoddingTime
)
/
ActualNodLength
;
/*if (ActualNodLength>ActualNodDuration)
{
HeadPitch *= (ActualNodLength - NoddingTime) / ActualNodLength; //decrease over time if more than one nod is played
}*/
AnimInstance
->
SkelControl_Head
.
Roll
=
HeadPitch
;
//is actually the pitch
AnimInstance
->
SkelControl_Head
.
Roll
=
HeadPitch
;
//is actually the pitch
VH_DEBUG
(
"Pitch: %f"
,
HeadPitch
);
}
}
}
}
...
...
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