Godot Version
4.4.1.0
Question
This line of code:
$Head.rotation.x = clamp($Head.rotation.x, deg_to_rad(-89), deg_to_rad(89))
Stops working after executing this other line:
if $Head:
$Head.rotation.z = lerp($Head.rotation.z, -input_x * tilt, lerp_speed * delta)
Head is the player camera