This commit is contained in:
mischa 2024-10-16 15:47:26 +02:00
parent 3697951400
commit 85270951a7

View File

@ -795,6 +795,13 @@ public virtual void Reset()
// so let's clear the buffers.
serverSnapshots.Clear();
clientSnapshots.Clear();
// reset delta compression
lastSerializedBaselineTick = 0;
lastDeserializedBaselineTick = 0;
lastDeserializedBaselinePosition = Vector3.zero;
lastDeserializedBaselineRotation = Quaternion.identity;
lastDeserializedBaselineScale = Vector3.one;
}
protected virtual void OnDisable() => Reset();