diff --git a/Source/CharacterPlugin/Private/VHListenerBackchannels.cpp b/Source/CharacterPlugin/Private/VHListenerBackchannels.cpp index 470ae2e0a56a000126bb0d445e5725e998fa60df..d9aca1b4b1c3af7710da65247a35fe3d3f1ffab9 100644 --- a/Source/CharacterPlugin/Private/VHListenerBackchannels.cpp +++ b/Source/CharacterPlugin/Private/VHListenerBackchannels.cpp @@ -49,12 +49,7 @@ void UVHListenerBackchannels::TickComponent(float DeltaTime, ELevelTick TickType float HeadPitch = - cos((NoddingTime * 2 * PI) / ActualNodDuration) * ActualNodAmplitude + ActualNodAmplitude; //decrease over time, e.g., if more than one nod is played 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 - VH_DEBUG("Pitch: %f", HeadPitch); } }