diff --git a/ThirdPerson/CameraLogic.cs b/ThirdPerson/CameraLogic.cs index 1f68417..f764910 100644 --- a/ThirdPerson/CameraLogic.cs +++ b/ThirdPerson/CameraLogic.cs @@ -153,7 +153,7 @@ internal static class CameraLogic switch (location) { case CameraLocation.FrontView: - _ourCam.transform.localPosition = new Vector3(0, 0.015f, 0.55f + _dist); + _ourCam.transform.localPosition = new Vector3(0, 0.015f, 0.55f - _dist); _ourCam.transform.localRotation = new Quaternion(0, 180, 0, 0); CurrentLocation = CameraLocation.FrontView; break; diff --git a/ThirdPerson/ThirdPerson.cs b/ThirdPerson/ThirdPerson.cs index 4500130..f342260 100644 --- a/ThirdPerson/ThirdPerson.cs +++ b/ThirdPerson/ThirdPerson.cs @@ -34,7 +34,8 @@ public class ThirdPerson : MelonMod public override void OnUpdate() { - if (State) + // Prevents scrolling while in Menus or UnityExplorer + if (State && Cursor.lockState == CursorLockMode.Locked) { if (Input.GetAxis("Mouse ScrollWheel") > 0f) IncrementDist(); else if (Input.GetAxis("Mouse ScrollWheel") < 0f) DecrementDist();