From 13d106ca7dbd62ae1c3b107648592c9991cca909 Mon Sep 17 00:00:00 2001 From: Sean Hickey Date: Sat, 19 Jul 2014 23:58:14 -0400 Subject: [PATCH] Added vertical translation back in --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1cf8cf0..f52800c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -175,6 +175,12 @@ void moveCamera() { if (glfwGetKey(globals.window, 'E') == GLFW_PRESS) { globals.camera.rotate(r*forward); } + if (glfwGetKey(globals.window, 'Z') == GLFW_PRESS) { + globals.camera.translate(-t*up); + } + if (glfwGetKey(globals.window, 'X') == GLFW_PRESS) { + globals.camera.translate(t*up); + } } GLFWwindow* initializeGlfw() {