const SPEED = 5.0
-const CAMERA_ROTATE_RATE = PI / 12
+const CAMERA_ROTATE_RATE = PI / 6
# rotate camera
func _unhandled_input(event: InputEvent) -> void:
- if event.is_action("camera-rotate-left"):
+ if event.is_action_pressed("camera-rotate-left"):
$cameraPivot.rotate_y(CAMERA_ROTATE_RATE)
- elif event.is_action("camera-rotate-right"):
+ elif event.is_action_pressed("camera-rotate-right"):
$cameraPivot.rotate_y(-CAMERA_ROTATE_RATE)