So I'm using a LineRenderer to make a line between to points, then with this LineRenderer I'm trying to make a meshCollider, but its really off. I can't seem to find the answer.
line.SetPositions(points.ConvertAll(point => point.position).ToArray());
Mesh mesh = new Mesh();
line.BakeMesh(mesh, Camera.main);
collideR.sharedMesh = mesh;