summary refs log tree commit diff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-10-06 01:42:52 +0200
committerMel <einebeere@gmail.com>2022-10-06 01:42:52 +0200
commit731846a0c654b39e23c26f611470e401df404c9d (patch)
treed48a0f4160adaabaf2511808ba0519dc005fa44c /src/main.cpp
parent1474eb20033d809f85621b8b1060df362a239557 (diff)
downloadmeowcraft-731846a0c654b39e23c26f611470e401df404c9d.tar.zst
meowcraft-731846a0c654b39e23c26f611470e401df404c9d.zip
Relative to camera movement
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 32d3b4b..63d371a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -133,7 +133,7 @@ void process_input(MC::Window& window, MC::Camera& camera) {
 
     auto speed = 0.05f;
 
-    camera.move({x * speed, y * speed, z * speed});
+    camera.move_relative({x * speed, y * speed, z * speed});
     camera.rotate({rx * speed, ry * speed, 0.0f});
 }