mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix; dont apply baseline immediately
This commit is contained in:
parent
51412fb651
commit
93eb39e9b6
@ -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);
|
||||
// }
|
||||
|
Loading…
Reference in New Issue
Block a user