2026-10-18 16:06:22 -05:00
|
|
|
class_name Player extends Node
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func process(_delta: float) -> String:
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("pull_up"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "pull_up"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("push_down"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "push_down"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("yaw_left"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "yaw_left"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("yaw_right"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "yaw_right"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("roll_left"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "roll_left"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("roll_right"):
|
2026-10-18 16:06:22 -05:00
|
|
|
return "roll_right"
|
2026-10-18 22:58:58 -05:00
|
|
|
if Input.is_action_pressed("throttle_up"):
|
|
|
|
|
return "throttle_up"
|
|
|
|
|
if Input.is_action_pressed("throttle_down"):
|
|
|
|
|
return "throttle_down"
|
2026-10-18 16:06:22 -05:00
|
|
|
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
func physics_process(_delta: float) -> String:
|
|
|
|
|
return ""
|
|
|
|
|
|
|
|
|
|
func unhandled_input(_event: InputEvent) -> String:
|
|
|
|
|
return ""
|