...
This commit is contained in:
@ -15,9 +15,9 @@ namespace CameraScripts
|
||||
|
||||
public static CameraHandler Singleton;
|
||||
|
||||
public const float LookSpeed = 0.1f;
|
||||
public const float FollowSpeed = 0.1f;
|
||||
public const float PivotSpeed = 0.03f;
|
||||
[SerializeField] private float LookSpeed = 0.1f;
|
||||
[SerializeField] private float FollowSpeed = 0.1f;
|
||||
[SerializeField] private float PivotSpeed = 0.03f;
|
||||
|
||||
private float _defaultPosition;
|
||||
private float _lookAngle;
|
||||
@ -50,12 +50,7 @@ namespace CameraScripts
|
||||
var rotation = Vector3.zero;
|
||||
rotation.y = _lookAngle;
|
||||
var targetRotation = Quaternion.Euler(rotation);
|
||||
_myTransform.rotation = targetRotation;
|
||||
|
||||
rotation = Vector3.zero;
|
||||
rotation.x = _pivotAngle;
|
||||
targetRotation = Quaternion.Euler(rotation);
|
||||
cameraPivotTransform.localRotation = targetRotation;
|
||||
targetTransform.rotation = targetRotation;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user