changing the way Time works
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user