added spedometer

This commit is contained in:
Wheelbarrow
2025-07-26 15:32:05 -04:00
parent c1426ddcc0
commit 9008acadcd
2 changed files with 7 additions and 0 deletions

1
car.gd
View File

@@ -31,6 +31,7 @@ func _ready() -> void:
func _physics_process(delta: float) -> void:
steer(delta)
apply_air_resistance()
get_tree().get_first_node_in_group("spedometer").text = str(linear_velocity.length())
func steer(delta: float) -> void:
var steer_input = Input.get_axis("Steer Right", "Steer Left")