This commit is contained in:
miwarnec 2024-11-04 11:35:53 +01:00
parent 1552aa2d4b
commit 724d3d4a8b

View File

@ -217,6 +217,8 @@ void CmdClientToServerBaseline_PositionRotation(byte baselineTick, Vector3 posit
// debug draw: baseline
if (debugDraw) Debug.DrawLine(position, position + Vector3.up, Color.yellow, 10f);
Debug.Log($"{name} server received baseline: {baselineTick}");
// if baseline counts as delta, insert it into snapshot buffer too
if (baselineIsDelta)
OnClientToServerDeltaSync(baselineTick, position, rotation);//, scale);
@ -271,6 +273,8 @@ void CmdClientToServerDelta_PositionRotation(byte baselineTick, Vector3 position
// debug draw: delta
if (debugDraw) Debug.DrawLine(position, position + Vector3.up, Color.white, 10f);
Debug.Log($"[{name}] server received delta for {baselineTick}, with last baseline {lastDeserializedBaselineTick}");
// Debug.Log($"[{name}] server received delta for baseline #{lastDeserializedBaselineTick}");
OnClientToServerDeltaSync(baselineTick, position, rotation);//, scale);
}