mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Changed default camera rotation to 36 degrees
This commit is contained in:
parent
15de54599a
commit
45f3e9514d
2 changed files with 6 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue