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/followCameraController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/followCameraController.cpp') diff --git a/gfx/followCameraController.cpp b/gfx/followCameraController.cpp index 9e32e21..42d1666 100644 --- a/gfx/followCameraController.cpp +++ b/gfx/followCameraController.cpp @@ -32,7 +32,7 @@ FollowCameraController::updateCamera(Camera * camera) const case Mode::ISO: camera->pos = pos + ((up + north + east) * 40.F); - camera->forward = -glm::normalize(up + north + east); + camera->forward = glm::normalize(down + south + west); camera->up = glm::normalize(up - north - east); break; } -- cgit v1.2.3