Initial commit.
This commit is contained in:
commit
907695442f
28 changed files with 717 additions and 0 deletions
15
demo/hud.gd
Normal file
15
demo/hud.gd
Normal file
|
@ -0,0 +1,15 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue