player controller logic
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user