From 2ea5ed09858e862403f1bf3d6ef8ff23511c7119 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Fri, 6 Dec 2024 14:11:19 +0100 Subject: [PATCH] Client: Fix camera rotation when in a ship --- src/Game/States/GameState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Game/States/GameState.cpp b/src/Game/States/GameState.cpp index 7844dbb..89e7b51 100644 --- a/src/Game/States/GameState.cpp +++ b/src/Game/States/GameState.cpp @@ -731,7 +731,7 @@ namespace tsom cameraNode.SetPosition(characterPos + characterRot * (Nz::Vector3f::Up() * Constants::PlayerCameraHeight)); - Nz::Quaternionf cameraRotation = environmentNode->GetRotation() * m_referenceRotation * Nz::Quaternionf(predictedCameraRotation); + Nz::Quaternionf cameraRotation = environmentNode->GetGlobalRotation() * m_referenceRotation * Nz::Quaternionf(predictedCameraRotation); cameraRotation.Normalize(); if (m_isPilotingShip)