Changed default camera rotation to 36 degrees

This commit is contained in:
MaddoScientisto 2025-12-25 19:49:33 +01:00
commit 45f3e9514d
2 changed files with 6 additions and 5 deletions

View file

@ -9,12 +9,14 @@ public partial class CameraController3D : Camera3D
[Export] public bool EnableSmoothing = true;
[Export] public bool FollowTargeting = true;
[Export] public Vector3 DefaultCameraRotation = new Vector3(-36f, 45f, 0f);
[Export] public float SmoothTime = 0.2f;
[Export] public float MaxAimOffsetDistance = 2.0f;
[Export] public float AimLerpSpeed = 8.0f;
[Export] public float AimDeadzone = 0.2f;
[Export] public Vector3 CameraOffset = new Vector3(0, 12, -12); // Relative to target
[Export] public Vector3 CameraOffset = new Vector3(8, 8.5f, 8); //new Vector3(0, 12, -12); // Relative to target
[Export] public StringName AimUpName = "aim_up";
[Export] public StringName AimDownName = "aim_down";
@ -26,12 +28,12 @@ public partial class CameraController3D : Camera3D
private CameraTarget3D _target;
private Vector3 _currentPosition = Vector3.Zero;
private Vector3 _currentAimOffset = Vector3.Zero;
public override void _Ready()
{
Instance = this;
RotationDegrees = new Vector3(-45f, 45f, 0f);
RotationDegrees = DefaultCameraRotation;
Projection = ProjectionType.Orthogonal;
_target = GetNode<CameraTarget3D>(TargetPath);