This commit is contained in:
2026-07-31 18:18:18 +02:00
commit a061aff066
137 changed files with 3491 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
extends SpringArm3D
@onready var player: CharacterBody3D = $"../.."
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _unhandled_input(event: InputEvent) -> void:
if player.third_person and event is InputEventMouseMotion :
player.rotation.y -= event.relative.x * 0.005
player.rotation.y = wrapf( player.rotation.y, 0.0, TAU )
rotation.x -= event.relative.y * 0.005
rotation.x = clamp( rotation.x, -PI/2, PI/4 )