Allow orientation locking arch ball controller

This commit is contained in:
2024-07-02 12:44:26 +02:00
parent f797d6970b
commit 2adf8d7b8e
2 changed files with 12 additions and 2 deletions

View File

@@ -26,8 +26,8 @@ namespace OpenVulkano
{
if (!GetCamera()) return;
Input::InputManager* input = Input::InputManager::GetInstance();
float inYaw = input->GetAxis(m_actionLookSide);
float inPitch = input->GetAxis(m_actionLookUp);;
float inYaw = (lockYaw) ? 0 : input->GetAxis(m_actionLookSide);
float inPitch = (lockPitch) ? 0 : input->GetAxis(m_actionLookUp);
Math::Vector4f_SIMD position = GetCamera()->GetPosition();
bool updated = false;