player controller logic

This commit is contained in:
bee
2026-07-07 11:53:39 +02:00
parent b4f6dda29b
commit a40d0bfdd3
10 changed files with 93 additions and 25 deletions
+3 -1
View File
@@ -14,11 +14,13 @@ func _process(_delta: float) -> void:
var speed := boat.linear_velocity.dot(forward.normalized())
var pos := world.true_position(boat)
text = "Throttle: %+.0f %%
text = "Desired Throttle: %+.0f %%
Actual Throttle: %+.0f %%
Speed: %.1f m/s
Submerged: %.0f %%
Position: (%.0f, %.0f)
" % [
boat.desired_throttle * 100.0,
boat.throttle * 100.0,
speed,
boat.submerged_ratio * 100.0,