0

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;

https://i.stack.imgur.com/ppCf3.png

Wooknows
  • 1
  • 1

0 Answers0