Fix jump when switching from pan to two finger pan

This commit is contained in:
Georg Hagen
2024-10-11 12:52:36 +02:00
parent 0ff4d391c2
commit 9f03055534
2 changed files with 3 additions and 4 deletions

View File

@@ -61,10 +61,6 @@ namespace OpenVulkano
Math::Vector3f_SIMD vec(input->GetAxis(m_actionSide), input->GetAxis(m_actionUp), -input->GetAxis(m_actionForward));
if (vec != Math::Vector3f_SIMD (0))
{
if (Math::Utils::length2(vec) > 1.0f)
{ //TODO only do this for keyboards
//vec = Math::Utils::normalize(vec);
}
const float timeScale = CURRENT_FRAME.frameTime; //TODO
vec = vec * timeScale * m_movementSpeedModifier; // scale vector
vec = GetCamera()->GetRotationMatrix() * Math::Vector3f(vec);