Piloting player
This commit is contained in:
parent
636b44793e
commit
e43e0cc890
@ -127,8 +127,8 @@ func _sync_piloting_state():
|
|||||||
|
|
||||||
|
|
||||||
func _send_ship_sync():
|
func _send_ship_sync():
|
||||||
# if piloting_player == null or !piloting_player.is_network_authority:
|
if piloting_player != null && !piloting_player.is_network_authority:
|
||||||
var sync_buffer: float = 4
|
var sync_buffer: float = 2
|
||||||
if old_global_position_cache.distance_squared_to(global_position) > sync_buffer:
|
if old_global_position_cache.distance_squared_to(global_position) > sync_buffer:
|
||||||
NetworkManager.sync_property(network_uuid, "global_position", global_position)
|
NetworkManager.sync_property(network_uuid, "global_position", global_position)
|
||||||
old_global_position_cache = global_position
|
old_global_position_cache = global_position
|
||||||
|
Loading…
Reference in New Issue
Block a user