From 6b21de516d50acecf1e7ec44ca6fb1848bcef18e Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 25 Feb 2024 12:49:28 +0100 Subject: [PATCH] LagCompensator: rename collider field to be more obvious in Inspector --- Assets/Mirror/Components/LagCompensation/LagCompensator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Components/LagCompensation/LagCompensator.cs b/Assets/Mirror/Components/LagCompensation/LagCompensator.cs index a4c0cdb6e..b5ae3f815 100644 --- a/Assets/Mirror/Components/LagCompensation/LagCompensator.cs +++ b/Assets/Mirror/Components/LagCompensation/LagCompensator.cs @@ -38,7 +38,7 @@ public class LagCompensator : NetworkBehaviour { [Header("Components")] [Tooltip("The collider to keep a history of.")] - public Collider col; // assign this in inspector + public Collider trackedCollider; // assign this in inspector [Header("Settings")] public LagCompensationSettings lagCompensationSettings = new LagCompensationSettings(); @@ -69,8 +69,8 @@ protected virtual void Capture() // capture current state Capture3D capture = new Capture3D( NetworkTime.localTime, - col.bounds.center, - col.bounds.size + trackedCollider.bounds.center, + trackedCollider.bounds.size ); // insert into history