Preliminary multiplayer capability (origin stuff disabled for now)

This commit is contained in:
Patrick Marsee 2025-09-24 18:08:12 -04:00
parent 73baafbd6c
commit f0c4263675
18 changed files with 704 additions and 99 deletions

View file

@ -15,7 +15,13 @@ extends AircraftController
@export var roll_speed := 1.0
@export var throttle_speed := 1.0
func _physics_process(delta: float) -> void:
#func _ready() -> void:
# Only process for the local player.
# set_process(get_multiplayer_authority() == multiplayer.get_unique_id())
# if get_multiplayer_authority() == multiplayer.get_unique_id():
# print("Multiplayer auth: ", str(get_multiplayer_authority()))
func _process(delta: float) -> void:
if get_multiplayer_authority() == multiplayer.get_unique_id():
var pitch_target := Input.get_axis(pitch_down, pitch_up)
var pitch_diff := pitch_target - pitch