Ship mostly works #10
@ -76,13 +76,13 @@ func _physics_process(_delta):
|
||||
global_rotation.x = lerpf(global_rotation.x, 0, 0.1)
|
||||
global_rotation.z = lerpf(global_rotation.z, 0, 0.1)
|
||||
|
||||
if old_global_position_cache != global_position:
|
||||
NetworkManager.sync_property(uuid, "global_position", global_position)
|
||||
old_global_position_cache = global_position
|
||||
|
||||
if old_global_rotation_cache != global_rotation:
|
||||
NetworkManager.sync_property(uuid, "global_rotation", global_rotation)
|
||||
old_global_rotation_cache = global_rotation
|
||||
if old_global_position_cache != global_position:
|
||||
NetworkManager.sync_property(uuid, "global_position", global_position)
|
||||
old_global_position_cache = global_position
|
||||
|
||||
if old_global_rotation_cache != global_rotation:
|
||||
NetworkManager.sync_property(uuid, "global_rotation", global_rotation)
|
||||
old_global_rotation_cache = global_rotation
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user