There's an issue I can't solve where the camera rotates after translating in an environment, here's a video of the issue.

https://youtu.be/z95r9tP_Npc

Does anyone know what's going on?

    It looks like there is a small detection of rotation during the input capture, are you using touch inputs or mouse inputs?
    thanks

      Anthony this is a mouse input on Unity 2019 in the editor. I’m not certain how to stop it from occurring.

        riverg can you show me your camera parameters? Do you experience the same issue on my demo scenes?
        thank you

          riverg can you try this fix?
          Open CameraBase.cs and replace the function IsInputMatching with this:

                  protected bool IsInputMatching(InputMapFingerDrag action)
                  {
                      if (middleClickDrag == action && Input.GetMouseButton(2) && !Application.isMobilePlatform)
                          return true;
                      if (rightClickDrag == action && Input.GetMouseButton(1) && !Application.isMobilePlatform)
                          return true;
                      if (twoFingerDrag == action && CameraInputs.GetFingerCount() == 2)
                          return true;
                      if (oneFingerDrag == action && CameraInputs.GetFingerCount() == 1
                          && !Input.GetMouseButton(1) && !Input.GetMouseButton(2)
                          && !Input.GetMouseButtonUp(1) && !Input.GetMouseButtonUp(2))
                          return true;
                      return false;
                  }

            I published a bug fix, it will be available in 3days on the store. Thanks!

              Write a Reply...