menus and settings
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 13s
Create tag and build when new code gets to main / Export (push) Successful in 8m15s

This commit is contained in:
2025-10-23 15:21:33 +02:00
parent 916ff1921c
commit ef33336975
122 changed files with 1228 additions and 66 deletions

View File

@@ -21,6 +21,7 @@ public partial class Bobbing: Node3D
public float Delta;
public bool IsOnFloorCustom;
public Vector3 Velocity;
public float SettingsMultiplier;
}
private float _bobbingAccumulator; // Constantly increases when player moves in X or/and Z axis
@@ -38,8 +39,8 @@ public partial class Bobbing: Node3D
// Because both of them are just waves, we will be slide up with y and then slide down with y
// creating bobbing effect. The same works for cos. As the _bobbingAccumulator increases the cos decreases and then increases
newPositionForCamera.Y = Mathf.Sin(_bobbingAccumulator * BobbingFrequency) * BobbingAmplitude;
newPositionForCamera.X = Mathf.Cos(_bobbingAccumulator * BobbingFrequency / 2.0f) * BobbingAmplitude;
newPositionForCamera.Y = Mathf.Sin(_bobbingAccumulator * BobbingFrequency) * BobbingAmplitude * parameters.SettingsMultiplier;
newPositionForCamera.X = Mathf.Cos(_bobbingAccumulator * BobbingFrequency / 2.0f) * BobbingAmplitude * parameters.SettingsMultiplier;
_camera.Position = newPositionForCamera;
}