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

@@ -16,15 +16,15 @@ public partial class HeadSystem : Node3D
_camera = GetNode<Camera3D>("CameraSmooth/Camera3D");
}
public void LookAround(Vector2 lookDir)
public void LookAround(Vector2 lookDir, float sensitivitMultiplier = 1f)
{
// Horizontal movement of head
float angleForHorizontalRotation = lookDir.X * LookSensitivity;
float angleForHorizontalRotation = lookDir.X * LookSensitivity * sensitivitMultiplier;
RotateY(angleForHorizontalRotation);
// Vertical movement of head
Vector3 currentCameraRotation = _camera.Rotation;
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity);
currentCameraRotation.X += Convert.ToSingle(lookDir.Y * LookSensitivity * sensitivitMultiplier);
currentCameraRotation.X = Mathf.Clamp(currentCameraRotation.X, Mathf.DegToRad(-90f), Mathf.DegToRad(90f));
_camera.Rotation = currentCameraRotation;