diff --git a/QSB/Syncs/QSBNetworkTransform.cs b/QSB/Syncs/QSBNetworkTransform.cs index 42134354..e98820d1 100644 --- a/QSB/Syncs/QSBNetworkTransform.cs +++ b/QSB/Syncs/QSBNetworkTransform.cs @@ -8,8 +8,8 @@ namespace QSB.Syncs { protected override float SendInterval => 0.05f; - protected const float PositionChangeThreshold = 0.05f; - protected const float RotationChangeThreshold = 0.05f; + private const float PositionChangeThreshold = 0.05f; + private const float RotationChangeThreshold = 0.05f; private Vector3 _prevPosition; private Quaternion _prevRotation; diff --git a/QSB/Syncs/SyncBase.cs b/QSB/Syncs/SyncBase.cs index 6bf43593..d6e3336b 100644 --- a/QSB/Syncs/SyncBase.cs +++ b/QSB/Syncs/SyncBase.cs @@ -270,7 +270,7 @@ namespace QSB.Syncs var distance = Vector3.Distance(SmoothPosition, transform.position); var angle = Quaternion.Angle(SmoothRotation, transform.rotation); if (Mathf.Abs(distance - _prevDistance) > DistanceChangeThreshold || - distance < PositionChangeThreshold && angle < RotationChangeThreshold) + distance < .001f && angle < .001f) { SmoothPosition = transform.position; SmoothRotation = transform.rotation;