@@ -23,7 +23,7 @@ func trigger_direction(dir: Vector2) -> void:
target_rotation = -dir.x * turn_to_rad
var ground_velocity: Vector2 = Vector2.UP.rotated(global_rotation.y) * dir.y * speed
target_velocity.x = ground_velocity.x
- target_velocity.z = -ground_velocity.y
+ target_velocity.z = ground_velocity.y
func _physics_process(delta: float) -> void:
@@ -9,5 +9,5 @@ func _unhandled_input(event: InputEvent) -> void:
if event.is_action_pressed("jump"):
main_action.emit()
elif event is InputEventJoypadMotion:
- var dir: Vector2 = Input.get_vector("move_left", "move_right", "move_forward", "move_back")
+ var dir: Vector2 = Input.get_vector("move_left", "move_right", "move_back", "move_forward")
dir_changed.emit(dir)