diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs index 9b5c6ea3b..a0d1e69a9 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs @@ -207,10 +207,10 @@ public override void OnSerialize(NetworkWriter writer, bool initialState) if (syncPosition) writer.WriteVector3(snapshot.position); if (syncRotation) { - // (optional) smallest three compression for now. no delta. - if (compressRotation) - writer.WriteUInt(Compression.CompressQuaternion(snapshot.rotation)); - else + // if smallest-three quaternion compression is enabled, + // then we don't need baseline rotation since delta always + // sends an absolute value. + if (!compressRotation) writer.WriteQuaternion(snapshot.rotation); } if (syncScale) writer.WriteVector3(snapshot.scale); @@ -271,10 +271,10 @@ public override void OnDeserialize(NetworkReader reader, bool initialState) } if (syncRotation) { - // (optional) smallest three compression for now. no delta. - if (compressRotation) - rotation = Compression.DecompressQuaternion(reader.ReadUInt()); - else + // if smallest-three quaternion compression is enabled, + // then we don't need baseline rotation since delta always + // sends an absolute value. + if (!compressRotation) rotation = reader.ReadQuaternion(); } if (syncScale) scale = reader.ReadVector3();