Physics improvement

This commit is contained in:
Antoine Pilote
2023-04-02 13:56:58 -04:00
parent 0f59e91bca
commit a02c4bd114
4 changed files with 29 additions and 11 deletions

View File

@@ -50,6 +50,8 @@ namespace Nuake
m_TimeStep = m_Time - m_LastFrameTime;
m_LastFrameTime = m_Time;
m_TimeStep = std::min((float)m_TimeStep, 0.5f);
// Dont update if no scene is loaded.
if (CurrentWindow->GetScene())
{