Skip to content
Snippets Groups Projects
Commit 2c395fc9 authored by Jonathan Ehret's avatar Jonathan Ehret
Browse files

remove debug code from backchannel nodding

parent a9a1987d
No related branches found
No related tags found
No related merge requests found
...@@ -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);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment