From 079dc220be1bd0c70d340aad34fa1894afcaebbb Mon Sep 17 00:00:00 2001 From: prokenya Date: Sun, 21 Sep 2025 22:11:31 +0300 Subject: [PATCH] [Fix] MPTransformSync bug The bug is that in 2D, rotation synchronization only works in one direction (to the right) --- addons/MultiplayCore/synchronizers/MPTransformSync.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/MultiplayCore/synchronizers/MPTransformSync.gd b/addons/MultiplayCore/synchronizers/MPTransformSync.gd index ac12c32..9125ce1 100644 --- a/addons/MultiplayCore/synchronizers/MPTransformSync.gd +++ b/addons/MultiplayCore/synchronizers/MPTransformSync.gd @@ -73,7 +73,7 @@ func _physics_process(delta): # Sync Rotation if sync_rotation: - if _sync_type == "2d" and _parent.rotation - _net_rotation > rotation_sensitivity: + if _sync_type == "2d" and abs(_parent.rotation - _net_rotation) > rotation_sensitivity: rpc("_recv_transform", "rot", _parent.rotation) if _sync_type == "3d" and (_parent.rotation - _net_rotation).length() > rotation_sensitivity: