From ae1edff268e97b9160123d6e224d725eed00e426 Mon Sep 17 00:00:00 2001 From: miwarnec Date: Tue, 5 Nov 2024 12:59:36 +0100 Subject: [PATCH] comments --- .../NetworkTransform/NetworkTransformHybrid2022.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs index 5fce61240..8bbc2cc9d 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformHybrid2022.cs @@ -511,14 +511,17 @@ void UpdateServerBaseline(double localTime) byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once! if (syncPosition && syncRotation) { + // no unreliable redundancy: baseline is reliable RpcServerToClientBaseline_PositionRotation(frameCount, position, rotation); } else if (syncPosition) { + // no unreliable redundancy: baseline is reliable RpcServerToClientBaseline_Position(frameCount, position); } else if (syncRotation) { + // no unreliable redundancy: baseline is reliable RpcServerToClientBaseline_Rotation(frameCount, rotation); } @@ -700,14 +703,17 @@ void UpdateClientBaseline(double localTime) byte frameCount = (byte)Time.frameCount; // perf: only access Time.frameCount once! if (syncPosition && syncRotation) { + // no unreliable redundancy: baseline is reliable CmdClientToServerBaseline_PositionRotation(frameCount, position, rotation); } else if (syncPosition) { + // no unreliable redundancy: baseline is reliable CmdClientToServerBaseline_Position(frameCount, position); } else if (syncRotation) { + // no unreliable redundancy: baseline is reliable CmdClientToServerBaseline_Rotation(frameCount, rotation); }