Debug.DrawRay(a.transform.position, (b.transform.position - a.transform.position) * maxDistance, Color.Green);