no verttical, better animation

This commit is contained in:
2025-01-18 13:58:21 +01:00
parent 3be990f804
commit 7b2222dfa7
3 changed files with 25 additions and 22 deletions

View File

@@ -22,9 +22,9 @@ func _ready() -> void:
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion:
head.rotate_x(-event.relative.y * SENSI)
#head.rotate_x(-event.relative.y * SENSI)
rotate_y(-event.relative.x * SENSI)
head.rotation.x = clamp(head.rotation.x, -PI/2, PI/2)
#head.rotation.x = clamp(head.rotation.x, -PI/2, PI/2)
func _physics_process(delta: float) -> void:
time_hand += delta