Improve style in many demos (#1263)

This commit is contained in:
Aaron Franke
2025-10-11 05:03:59 -07:00
committed by GitHub
parent 0ae09b7e5a
commit 520b4a7870
197 changed files with 904 additions and 766 deletions

View File

@@ -45,10 +45,10 @@ func _ready() -> void:
cycle_camera_type()
func _input(event: InputEvent) -> void:
if event is InputEventMouseMotion:
_yaw -= event.screen_relative.x * MOUSE_SENSITIVITY * 0.001
_pitch += event.screen_relative.y * MOUSE_SENSITIVITY * 0.002
func _input(input_event: InputEvent) -> void:
if input_event is InputEventMouseMotion:
_yaw -= input_event.screen_relative.x * MOUSE_SENSITIVITY * 0.001
_pitch += input_event.screen_relative.y * MOUSE_SENSITIVITY * 0.002
_pitch = clamp(_pitch, -PI, PI)
$Rig.rotation = Vector3(0, _yaw, 0)