From 842e1435f2fdd706dc69ca9cc63b212cb7020b83 Mon Sep 17 00:00:00 2001 From: Sardelka9515 <106232474+Sardelka9515@users.noreply.github.com> Date: Wed, 17 Aug 2022 01:54:14 +0800 Subject: [PATCH] aargh..... --- RageCoop.Client/Sync/Entities/SyncedVehicle.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/RageCoop.Client/Sync/Entities/SyncedVehicle.cs b/RageCoop.Client/Sync/Entities/SyncedVehicle.cs index ba8314ff..5c94054b 100644 --- a/RageCoop.Client/Sync/Entities/SyncedVehicle.cs +++ b/RageCoop.Client/Sync/Entities/SyncedVehicle.cs @@ -311,10 +311,10 @@ void DisplayVehicle(bool touching) _elapsed = Owner.PacketTravelTime+0.001f*LastSyncedStopWatch.ElapsedMilliseconds; _predictedPos = Position+_elapsed*Velocity; var current = MainVehicle.ReadPosition(); - var dist = current.DistanceTo(Position); + var dist = current.DistanceTo(_predictedPos); var cali = dist*(_predictedPos - current); if (Velocity.Length()<0.1) { cali*=10; } - if (dist>30) + if (dist>10) { MainVehicle.Position = _predictedPos; MainVehicle.Velocity = Velocity; @@ -446,4 +446,4 @@ private void StopPedalingAnim(bool fast) internal Vector3 LastVelocity { get; set; } #endregion } -} \ No newline at end of file +}