- Home /
Adding a Mesh Collider to Line Render in AR Draw
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;
Answer by zacharyaghaizu · Oct 29, 2020 at 03:38 PM
Even if you can tell me a box collider solution, it would be very helpful! As long as it works in AR or 3d
Your answer
Follow this Question
Related Questions
Object Collision PLEASE HELP!!! 1 Answer
Very simple collision death 1 Answer
collider ignore other collider at a small angle 1 Answer
Best collision detection method? 2 Answers