no verttical, better animation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user