Added vertical translation back in
parent
fef975e004
commit
13d106ca7d
|
@ -175,6 +175,12 @@ void moveCamera() {
|
||||||
if (glfwGetKey(globals.window, 'E') == GLFW_PRESS) {
|
if (glfwGetKey(globals.window, 'E') == GLFW_PRESS) {
|
||||||
globals.camera.rotate(r*forward);
|
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() {
|
GLFWwindow* initializeGlfw() {
|
||||||
|
|
Loading…
Reference in New Issue