diff --git a/Assets/Mirror/Components/LagCompensation/LagCompensator.cs b/Assets/Mirror/Components/LagCompensation/LagCompensator.cs index f0381a248..ea12d2ae8 100644 --- a/Assets/Mirror/Components/LagCompensation/LagCompensator.cs +++ b/Assets/Mirror/Components/LagCompensation/LagCompensator.cs @@ -182,7 +182,6 @@ public virtual bool RaycastCheck( // raycast Vector3 direction = hitPoint - originPoint; - float maxDistance = direction.magnitude * 2; bool result = Physics.Raycast(originPoint, direction, out hit, maxDistance, layerMask); // cleanup