Cleanup controller logic; tested more dot product stuff
This commit is contained in:
+2
-10
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user