adde compound command calling for multi input control; added notes on dot product; testing stuff in skunk works folder
This commit is contained in:
+3
-4
@@ -20,13 +20,12 @@ func _ready() -> void:
|
||||
pass
|
||||
|
||||
#func _process(delta: float) -> void:
|
||||
#var action = controller.process(delta)
|
||||
#var action: Globals.CompoundCommand = controller.process(delta)
|
||||
#if action:
|
||||
#control_frame.do_action(action, delta, self)
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
var action: Globals.ControllerCommand = controller.process(delta)
|
||||
|
||||
var action: Globals.CompoundCommand = controller.process(delta)
|
||||
if action:
|
||||
control_frame.do_action(action, delta, self)
|
||||
|
||||
@@ -34,7 +33,7 @@ func _physics_process(delta: float) -> void:
|
||||
move_and_slide()
|
||||
|
||||
#func _unhandled_input(event: InputEvent) -> void:
|
||||
#var action = controller.unhandled_input(event)
|
||||
#var action: Globals.CompoundCommand = controller.unhandled_input(event)
|
||||
#if not action: return
|
||||
|
||||
func set_model(model: Node) -> void:
|
||||
|
||||
@@ -8,6 +8,7 @@ size = Vector3(3, 2, 18)
|
||||
|
||||
[node name="jet" type="CharacterBody3D"]
|
||||
script = ExtResource("1_l0pwp")
|
||||
faction = null
|
||||
|
||||
[node name="camera" type="Camera3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5, 18)
|
||||
@@ -15,6 +16,7 @@ far = 10000.0
|
||||
|
||||
[node name="collision" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.17266846, -0.17565918, -1.5986328)
|
||||
visible = false
|
||||
shape = SubResource("BoxShape3D_31fu5")
|
||||
|
||||
[node name="target_ray" type="RayCast3D" parent="."]
|
||||
|
||||
Reference in New Issue
Block a user