fix; dont apply baseline immediately

This commit is contained in:
mischa 2024-10-19 16:55:52 +02:00
parent 51412fb651
commit 93eb39e9b6

View File

@ -264,24 +264,18 @@ void DeserializeBaseline(NetworkReader reader)
if (syncPosition)
{
Vector3 position = reader.ReadVector3();
target.localPosition = position;
// save deserialized as 'last' for next delta compression.
Compression.ScaleToLong(position, positionPrecision, out lastDeserializedPosition);
}
if (syncRotation)
{
Quaternion rotation = reader.ReadQuaternion();
target.localRotation = rotation;
// save deserialized as 'last' for next delta compression.
Compression.ScaleToLong(rotation, rotationPrecision, out lastDeserializedRotation);
}
// if (syncScale)
// {
// Vector3 scale = reader.ReadVector3();
// target.localScale = scale;
//
// // save deserialized as 'last' for next delta compression.
// Compression.ScaleToLong(scale, scalePrecision, out lastDeserializedScale);
// }