Browse Source

inverse direction

Kajetan Johannes Hammerle 3 years ago
parent
commit
d56d062992
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Game.cpp

+ 3 - 3
Game.cpp

@@ -63,10 +63,10 @@ void Game::tick() {
     oldHeight = height;
     oldPosition = position;
     if(up.isDown()) {
-        height -= 1.0f;
+        height += 1.0f;
     }
     if(down.isDown()) {
-        height += 1.0f;
+        height -= 1.0f;
     }
     const float speed = 2.5f;
     if(left.isDown()) {
@@ -81,4 +81,4 @@ void Game::tick() {
     if(back.isDown()) {
         position -= Vector3(0.0f, 0.0f, speed);
     }
-}
+}