This commit is contained in:
Team3
2026-09-04 00:06:51 +02:00
parent 8c7da42e64
commit 8b60164592
8 changed files with 690 additions and 73 deletions

View File

@@ -111,7 +111,9 @@ func _process(roh: float) -> void:
if _path.is_empty():
activity = soll[1]
else:
var schritt := d.normalized() * GEHTEMPO * delta
# nie über den Wegpunkt hinaus -- sonst pendelt er bei hohem Tempo
# um ihn herum, statt anzukommen
var schritt := d.normalized() * minf(GEHTEMPO * delta, d.length())
global_position += schritt
_visual.rotation.y = lerp_angle(_visual.rotation.y, atan2(-d.x, -d.z), 1.0 - pow(0.002, delta))
_bob += delta * 9.0