From 5e56b96f43becb2b57da1269191204bd51f553be Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 28 Jan 2024 11:56:32 +0100 Subject: [PATCH] syntax --- .../Components/PredictedRigidbody/PredictedRigidbody.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs b/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs index 44993262c..fe5571be7 100644 --- a/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs +++ b/Assets/Mirror/Components/PredictedRigidbody/PredictedRigidbody.cs @@ -231,10 +231,6 @@ protected virtual void SmoothFollowPhysicsCopy() // smoothly interpolate to the target position. // speed relative to how far away we are float positionStep = distance * positionInterpolationSpeed; - // speed relative to how far away we are. - // => speed increases by distance² because the further away, the - // sooner we need to catch the fuck up - // float positionStep = (distance * distance) * interpolationSpeed; transform.position = Vector3.MoveTowards(transform.position, physicsCopyRigidbody.position, positionStep * Time.deltaTime); // smoothly interpolate to the target rotation.