diff --git a/ThirdPerson/CameraLogic.cs b/ThirdPerson/CameraLogic.cs index 9643a79..1c943e7 100644 --- a/ThirdPerson/CameraLogic.cs +++ b/ThirdPerson/CameraLogic.cs @@ -154,28 +154,28 @@ internal static class CameraLogic switch (location) { case CameraLocation.FrontView: - _ourCam.transform.localPosition = new Vector3(0, 0.015f, 0.55f - _dist) * _scale; + _ourCam.transform.localPosition = new Vector3(0, 0.015f, 1f - _dist) * _scale; _ourCam.transform.localRotation = new Quaternion(0, 180, 0, 0); CurrentLocation = CameraLocation.FrontView; break; case CameraLocation.RightSide: - _ourCam.transform.localPosition = new Vector3(0.3f, 0.015f, -0.55f + _dist) * _scale; + _ourCam.transform.localPosition = new Vector3(0.3f, 0.015f, -1.5f + _dist) * _scale; _ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0); CurrentLocation = CameraLocation.RightSide; break; case CameraLocation.LeftSide: - _ourCam.transform.localPosition = new Vector3(-0.3f, 0.015f, -0.55f + _dist) * _scale; + _ourCam.transform.localPosition = new Vector3(-0.3f, 0.015f, -1.5f + _dist) * _scale; _ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0); CurrentLocation = CameraLocation.LeftSide; break; case CameraLocation.Default: default: - _ourCam.transform.localPosition = new Vector3(0, 0.015f, -0.88f + _dist) * _scale; + _ourCam.transform.localPosition = new Vector3(0, 0.015f, -1.5f + _dist) * _scale; _ourCam.transform.localRotation = new Quaternion(0, 0, 0, 0); CurrentLocation = CameraLocation.Default; break; } - } + } private static void ResetDist() => _dist = 0; internal static void IncrementDist() { _dist += 0.25f; RelocateCam(CurrentLocation); } diff --git a/ThirdPerson/ThirdPerson.cs b/ThirdPerson/ThirdPerson.cs index f342260..09e9774 100644 --- a/ThirdPerson/ThirdPerson.cs +++ b/ThirdPerson/ThirdPerson.cs @@ -44,6 +44,7 @@ public class ThirdPerson : MelonMod if (!Input.GetKey(KeyCode.LeftControl)) return; if (Input.GetKeyDown(KeyCode.T)) State = !State; if (!State || !Input.GetKeyDown(KeyCode.Y)) return; - RelocateCam((CameraLocation)(((int)CurrentLocation + 1) % Enum.GetValues(typeof(CameraLocation)).Length), true); + int cycle = Input.GetKeyDown(KeyCode.LeftShift) ? -1 : 1; + RelocateCam((CameraLocation)(((int)CurrentLocation + cycle) % Enum.GetValues(typeof(CameraLocation)).Length), true); } } \ No newline at end of file