changing the way Time works

This commit is contained in:
Erris
2026-01-23 15:42:39 +01:00
parent 1a584bcd2f
commit 33574d783a
2 changed files with 6 additions and 6 deletions

View File

@@ -113,7 +113,7 @@ class SandboxLayer : public OpenEngine::Layer
void moveSquare(glm::vec3& position)
{
float velocity = 1 * OpenEngine::Time::Get().DeltaTime();
float velocity = 1 * OpenEngine::Time::DeltaTime();
if (OpenEngine::Input::IsKeyPressed(OE_KEY_I))
position.y += velocity;
if (OpenEngine::Input::IsKeyPressed(OE_KEY_Y))