summaryrefslogtreecommitdiff
path: root/ui/manualCameraController.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-12-29 14:12:40 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-12-29 14:12:40 +0000
commit048f18e2a0b32044525cef41fa053984433c74b9 (patch)
treedfa4a11169654924c55a4dbfb0de3863e1f33342 /ui/manualCameraController.cpp
parentRemove weird operator! on vec2/3 (diff)
downloadilt-048f18e2a0b32044525cef41fa053984433c74b9.tar.bz2
ilt-048f18e2a0b32044525cef41fa053984433c74b9.tar.xz
ilt-048f18e2a0b32044525cef41fa053984433c74b9.zip
Remove misleading power operator^ on vec2/3
Diffstat (limited to 'ui/manualCameraController.cpp')
-rw-r--r--ui/manualCameraController.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/manualCameraController.cpp b/ui/manualCameraController.cpp
index 1f6b510..ef26e81 100644
--- a/ui/manualCameraController.cpp
+++ b/ui/manualCameraController.cpp
@@ -78,6 +78,6 @@ ManualCameraController::render(const UIShader &, const Position &) const
void
ManualCameraController::updateCamera(Camera * camera) const
{
- const auto forward = glm::normalize(sincosf(direction) ^ -sin(pitch));
- camera->setView((focus ^ 0.F) - forward * 3.F * std::pow(dist, 1.3F), forward);
+ const auto forward = glm::normalize(sincosf(direction) || -sin(pitch));
+ camera->setView((focus || 0.F) - forward * 3.F * std::pow(dist, 1.3F), forward);
}