I think this is the problem. You are working with a 3D game here, but you are calculating the distance using a 2D vector. It’s completely ignoring the z-axis. You should be using Vector3.Distance(...).
1 Like