This commit is contained in:
Gary Steven Keough 2024-12-16 21:42:34 -05:00
parent 72cf4c0ff1
commit 37021e494d

View File

@ -76,13 +76,13 @@ func _physics_process(_delta):
global_rotation.x = lerpf(global_rotation.x, 0, 0.1) global_rotation.x = lerpf(global_rotation.x, 0, 0.1)
global_rotation.z = lerpf(global_rotation.z, 0, 0.1) global_rotation.z = lerpf(global_rotation.z, 0, 0.1)
if old_global_position_cache != global_position: if old_global_position_cache != global_position:
NetworkManager.sync_property(uuid, "global_position", global_position) NetworkManager.sync_property(uuid, "global_position", global_position)
old_global_position_cache = global_position old_global_position_cache = global_position
if old_global_rotation_cache != global_rotation: if old_global_rotation_cache != global_rotation:
NetworkManager.sync_property(uuid, "global_rotation", global_rotation) NetworkManager.sync_property(uuid, "global_rotation", global_rotation)
old_global_rotation_cache = global_rotation old_global_rotation_cache = global_rotation