Preliminary multiplayer capability (origin stuff disabled for now)
This commit is contained in:
parent
73baafbd6c
commit
f0c4263675
18 changed files with 704 additions and 99 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue