From b7fadd730a78671a0eaf55c36df24c04661ef2c3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Tue, 16 Nov 2021 00:07:48 +0000 Subject: Swap y,z axis This was a pain... but all the coords make much more sense now and a lot of mystery negation has disappeared. --- gfx/manualCameraController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/manualCameraController.cpp') diff --git a/gfx/manualCameraController.cpp b/gfx/manualCameraController.cpp index 268920a..022fb72 100644 --- a/gfx/manualCameraController.cpp +++ b/gfx/manualCameraController.cpp @@ -47,7 +47,7 @@ ManualCameraController::handleInput(SDL_Event & e) pitch = std::clamp(pitch - 0.01F * (float)e.motion.yrel, 0.1F, half_pi); } else { - focus += rotate_flat(-direction) * glm::vec2 {e.motion.xrel, e.motion.yrel}; + focus += rotate_flat(-direction) * glm::vec2 {-e.motion.xrel, e.motion.yrel}; } } return true; -- cgit v1.2.3