Added motion planel for raw/pitch/roll and acceleration. Consolidated all colors into one stylesheet in themes/palette.gd.
This commit is contained in:
1 parent
948b177eee
commit
f05a6148fb
13 files changed
+672
No files matched your search
@@ -0,0 +1,18 @@
|
||||
extends VBoxContainer
|
||||
|
||||
var elapsed := 0.0
|
||||
var running := true
|
||||
@onready var instrument = $MotionPanel
|
||||
|
||||
func _ready() -> void:
|
||||
$Pause.toggled.connect(func(paused: bool) -> void: running = not paused)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not running:
|
||||
return
|
||||
elapsed += delta
|
||||
instrument.set_telemetry(
|
||||
Vector3(24 * sin(elapsed * 0.5), 18 * sin(elapsed * 0.3), fposmod(350 + elapsed * 4, 360)),
|
||||
Vector3(1.8 * cos(elapsed * 0.5), 0.9 * cos(elapsed * 0.3), 0.6),
|
||||
Vector3(2.8 * sin(elapsed * 0.7), 1.9 * cos(elapsed * 0.5), 1.2 * sin(elapsed * 0.4))
|
||||
)
|
||||
Reference in new issue
Block a user