From 8b5140331021af994006006d218a3812b4418d6d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Mon, 1 Jul 2024 13:23:06 +0200 Subject: [PATCH] Recast: fix camera movement bug (XZ -> XY) Up/down should be applied to the Z axis. --- src/naveditor/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/naveditor/main.cpp b/src/naveditor/main.cpp index 2fc49955..8290c8a4 100644 --- a/src/naveditor/main.cpp +++ b/src/naveditor/main.cpp @@ -777,7 +777,7 @@ int not_main(int argc, char** argv) cameraPos[1] += movey * static_cast(modelviewMatrix[6]); cameraPos[2] += movey * static_cast(modelviewMatrix[10]); - cameraPos[1] += (moveUp - moveDown) * keybSpeed * dt; + cameraPos[2] += (moveUp - moveDown) * keybSpeed * dt; glEnable(GL_FOG);