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

@@ -44,7 +44,7 @@ namespace OpenVulkano::Scene
if (m_isMorphing)
{
m_currentTime += CURRENT_FRAME.frameTime;
m_currentTime += input->GetTimeScale();
if (m_currentTime > m_animationDuration) m_currentTime = m_animationDuration;
float t = m_currentTime / m_animationDuration;
if (t >= 1.0f)