From d7daadade427a81d5bbf4c63d56b17de71bfe379 Mon Sep 17 00:00:00 2001 From: mischa Date: Wed, 3 Apr 2024 18:50:09 +0800 Subject: [PATCH] remove unused --- .../Components/ForecastRigidbody/ForecastRigidbody.cs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs index ef3a71ed2..a84288321 100644 --- a/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs +++ b/Assets/Mirror/Components/ForecastRigidbody/ForecastRigidbody.cs @@ -57,14 +57,6 @@ public class ForecastRigidbody : NetworkBehaviour public float motionSmoothingTimeTolerance = 0.5f; double motionSmoothingLastMovedTime; - // client keeps state history for correction & reconciliation. - // this needs to be a SortedList because we need to be able to insert inbetween. - // => RingBuffer: see prediction_ringbuffer_2 branch, but it's slower! - [Header("State History")] - public int stateHistoryLimit = 32; // 32 x 50 ms = 1.6 seconds is definitely enough - readonly SortedList stateHistory = new SortedList(); - public float recordInterval = 0.050f; - [Header("Reconciliation")] [Tooltip("Correction threshold in meters. For example, 0.1 means that if the client is off by more than 10cm, it gets corrected.")] public double positionCorrectionThreshold = 0.10;