Revert possible physic change

This commit is contained in:
Chairn 2022-03-23 18:30:18 +01:00
parent d4aac67929
commit 49dd2b9ced

View file

@ -403,7 +403,7 @@ void CCharacterCore::Tick(bool UseInput)
// make sure that we don't add excess force by checking the
// direction against the current velocity. if not zero.
if(length(m_Vel) > 0.0001f)
Velocity = 1.f - (dot(normalize(m_Vel), Dir) + 1.f) / 2;
Velocity = 1 - (dot(normalize(m_Vel), Dir) + 1) / 2; // Wdouble-promotion don't fix this as this might change game physics
m_Vel += Dir * a * (Velocity * 0.75f);
m_Vel *= 0.85f;