Improve input time scale handling

This commit is contained in:
Georg Hagen
2025-01-25 22:15:14 +01:00
parent c56d956503
commit 48b3c0745b
8 changed files with 16 additions and 7 deletions

View File

@@ -61,7 +61,7 @@ namespace OpenVulkano
Math::Vector3f_SIMD vec(input->GetAxis(m_actionSide), input->GetAxis(m_actionUp), -input->GetAxis(m_actionForward));
if (vec != Math::Vector3f_SIMD (0))
{
const float timeScale = CURRENT_FRAME.frameTime; //TODO
const float timeScale = input->GetTimeScale(); //TODO
vec = vec * timeScale * m_movementSpeedModifier; // scale vector
vec = GetCamera()->GetRotationMatrix() * Math::Vector3f(vec);
const Math::Vector4f_SIMD movement(vec, 0);