Smoother cursor, Viewport scale, Stats

This commit is contained in:
2025-06-29 22:19:02 +03:00
parent bdde71f829
commit e2cc40266b
6 changed files with 66 additions and 2 deletions

View File

@@ -20,7 +20,8 @@ func _process(delta: float) -> void:
mouse_velocity = current_mouse_pos - old_mouse_pos
if mouse_velocity.length_squared()>0.1:
rotation = mouse_velocity.angle()
rotation = lerp_angle(rotation, mouse_velocity.angle(), 80 * delta)
var direction_to_mouse = (current_mouse_pos - global_position).normalized()
global_position = current_mouse_pos