Added vertical translation back in

master
Sean Hickey 2014-07-19 23:58:14 -04:00
parent fef975e004
commit 13d106ca7d
1 changed files with 6 additions and 0 deletions

View File

@ -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() {