diff options
| author | Mel <einebeere@gmail.com> | 2022-10-06 01:42:52 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-10-06 01:42:52 +0200 |
| commit | 731846a0c654b39e23c26f611470e401df404c9d (patch) | |
| tree | d48a0f4160adaabaf2511808ba0519dc005fa44c /src/main.cpp | |
| parent | 1474eb20033d809f85621b8b1060df362a239557 (diff) | |
| download | meowcraft-731846a0c654b39e23c26f611470e401df404c9d.tar.zst meowcraft-731846a0c654b39e23c26f611470e401df404c9d.zip | |
Relative to camera movement
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 2 |
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}); } |
