Skip to content

Commit

Permalink
remove camera movement when mouse move (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
T-rvw authored Feb 8, 2024
1 parent 46256e4 commit 29398c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Engine/Source/Runtime/Display/CameraController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ void CameraController::Update(float deltaTime)
if (Input::Get().IsMouseLBPressed() && !m_isMoving && m_isFirstClickInViewScene && !ImGuizmo::IsUsing())
{
m_isTracking = false;
MoveFront(m_horizontalSensitivity * Input::Get().GetMousePositionOffsetY() * deltaTime);
//MoveFront(m_movementSpeed * Input::Get().GetMousePositionOffsetY() * deltaTime);
Yaw(m_horizontalSensitivity * Input::Get().GetMousePositionOffsetX() * deltaTime);
}

Expand All @@ -189,7 +189,6 @@ void CameraController::Update(float deltaTime)
m_isTracking = false;
MoveForward(m_movementSpeed * Input::Get().GetMouseScrollOffsetY() * deltaTime * 10.0f);
}

}
}

Expand Down

0 comments on commit 29398c1

Please sign in to comment.