Update changes

This commit is contained in:
Gary Steven Keough 2024-12-15 23:04:20 -05:00
parent 159f5ae629
commit bb867c427e
3 changed files with 33 additions and 32 deletions

View File

@ -41,7 +41,7 @@ func _ready():
func _physics_process(_delta):
if piloting_player.is_network_authority:
if !piloting_player.is_network_authority: return
if ship_is_piloted:
var turn_speed = base_turn_speed / max(mass, 1)
var lift_speed = base_lift_speed / max(mass, 1)
@ -74,8 +74,9 @@ func _physics_process(_delta):
global_rotation.x = lerpf(global_rotation.x, 0, 0.1)
global_rotation.z = lerpf(global_rotation.z, 0, 0.1)
# Networking
if old_global_trans_cache != global_transform:
NetworkManager.sync_property(uuid, "global_transform", global_transform)
old_global_trans_cache = global_transform
func _on_area_3d_body_entered(body: Node3D) -> void:

Binary file not shown.