Reworked camera handling to be smoother

This commit is contained in:
finnchen123
2026-01-24 14:15:31 +01:00
parent f74ec7e84d
commit 467f6a78e2
5 changed files with 87 additions and 73 deletions

View File

@@ -179,8 +179,8 @@ namespace Assets.Scripts.Player
GameObject.Find("QuestLog").GetComponent<QuestLog>().updateQuests("explore", gameObject, 1);
}
public void rotate(Vector2 input, Vector2 speed){
transform.Rotate(Vector3.up, input.x * speed.x * 5);// * Time.deltaTime);
public void rotate(float yaw){
transform.rotation = Quaternion.Euler(0f, yaw, 0f);
}
public void getRotation()