diff --git a/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs b/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs index ee3827468..5d0f45a6c 100644 --- a/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs +++ b/Assets/Mirror/Components/NetworkTransform/NetworkTransformUnreliableCompressed.cs @@ -210,6 +210,8 @@ protected virtual void UpdateServer() } } + + double lastNetworkTime; protected virtual void UpdateClient() { // client authority, and local player (= allowed to move myself)? @@ -233,8 +235,12 @@ protected virtual void UpdateClient() if (debugDraw) { + // visual debugging + double delta = NetworkTime.time - lastNetworkTime; + lastNetworkTime = NetworkTime.time; + Debug.DrawLine(from.position, to.position, Color.white, 10f); - Debug.DrawLine(computed.position, computed.position + Vector3.up, Color.white, 10f); + Debug.DrawLine(computed.position, computed.position + Vector3.up * (float)(delta * 100), Color.white, 10f); } } }