Cleanup controller logic; tested more dot product stuff

This commit is contained in:
2026-11-06 18:00:33 -06:00
parent 6308ccb4fa
commit 324a01c165
8 changed files with 42 additions and 77 deletions
+2 -10
View File
@@ -19,23 +19,15 @@ var targeted_by: Jet = null
func _ready() -> void:
pass
#func _process(delta: float) -> void:
#var action: Globals.CompoundCommand = controller.process(delta)
#if action:
#control_frame.do_action(action, delta, self)
func _physics_process(delta: float) -> void:
func _process(delta: float) -> void:
var action: Globals.CompoundCommand = controller.process(delta)
if action:
control_frame.do_action(action, delta, self)
func _physics_process(_delta: float) -> void:
velocity = -transform.basis.z * control_frame.speed
move_and_slide()
#func _unhandled_input(event: InputEvent) -> void:
#var action: Globals.CompoundCommand = controller.unhandled_input(event)
#if not action: return
func set_model(model: Node) -> void:
add_child(model)