1
0
mirror of https://github.com/originalnicodr/CinematicUnityExplorer.git synced 2026-10-10 13:03:15 +08:00

Removed debugging log and fixed new camera orientation implementation to move as much as we move the mouse.

This commit is contained in:
originalnicodr
2024-01-28 12:54:26 -03:00
parent 390414716b
commit c75897d147
2 changed files with 1 additions and 4 deletions
+1 -3
View File
@@ -455,8 +455,6 @@ namespace UnityExplorer.UI.Panels
FreeCamPanel.ourCamera.transform.SetParent(FreeCamPanel.followObject.transform, true);
}
// ------------- Handle input ----------------
if (FreeCamPanel.blockFreecamMovementToggle.isOn || FreeCamPanel.cameraPathMover.playingPath){
@@ -521,7 +519,7 @@ namespace UnityExplorer.UI.Panels
float dirAngle = Mathf.Atan2(mouseDelta.y, mouseDelta.x);
dirAngle *= 180 / PI;
float newAngle = (dirAngle + tiltAngle) * PI / 180;
Vector2 newMouseCoords = new Vector2(Mathf.Cos(newAngle), Mathf.Sin(newAngle) ).normalized * 2f * (speedModifier == 10 ? 3 : speedModifier);
Vector2 newMouseCoords = new Vector2(Mathf.Cos(newAngle), Mathf.Sin(newAngle) ).normalized * mouseDelta.magnitude;
float newRotationX = transform.localEulerAngles.y + newMouseCoords.x;
float newRotationY = transform.localEulerAngles.x - newMouseCoords.y;
-1
View File
@@ -160,7 +160,6 @@ namespace UnityExplorer.UI.Panels
ReflectionInspector inspector = Pool<ReflectionInspector>.Borrow();
List<CacheMember> members = CacheMemberFactory.GetCacheMembers(objType, inspector);
foreach (CacheMember member in members){
ExplorerCore.LogWarning(member.NameForFiltering);
if (member is CacheProperty propertyMember && propertyMember.NameForFiltering == "QualitySettings.lodBias"){
lodBias = propertyMember;
break;