Add Mesh Collider to Line Renderer [ISSUE]
I have managed to get a Mesh Collider created. But it does not follow the line and creates a box shape at the first point.
I’m using AR Draw by Dilmer Valecillos’ technique to get my line and editing the AR Line .cs
//zachary adding mesh component
Mesh mesh = new Mesh();
MeshCollider meshCollider = go.AddComponent();
goLineRenderer.BakeMesh(mesh, Camera.main, false);
meshCollider.sharedMesh = mesh;
mesh.name = "LineMesh(Clone);
meshCollider.convex = true;