16 lines
578 B
GDScript3
16 lines
578 B
GDScript3
|
class_name HUD
|
||
|
extends Control
|
||
|
|
||
|
@export var source: FixedWingAircraft
|
||
|
|
||
|
@onready var tas_label := $TAS_Label as Label
|
||
|
@onready var aoa_label := $AOA_Label as Label
|
||
|
@onready var sideslip_label := $SideslipLabel as Label
|
||
|
@onready var relative_velocity_label := $RelativeVelocityLabel as Label
|
||
|
|
||
|
func _process(_delta: float) -> void:
|
||
|
tas_label.text = "TAS: %s" % source.m_tas
|
||
|
aoa_label.text = "AOA: %s" % rad_to_deg(source.m_aoa)
|
||
|
sideslip_label.text = "Sideslip: %s" % rad_to_deg(source.m_sideslip)
|
||
|
relative_velocity_label.text = "V: %s" % source.m_relative_velocity
|