- Home /
Create mesh with collider from a drawing line
I am a beginner with vertice and mesh. I want to get a user drawing, it will be a line/spline in one surface (2D) (X,Z) . I think I could do this with a line renderer, maybe.
From this line, (i see with line render, i have an array with point) generate a mesh in one direction (for example 2 axis). And then add a collider and texture to this mesh.
At the end it will be like a maze create by the user and then he could move in.
Have you some idea of the different step I have to do ?
Answer by axel_unity753 · Dec 18, 2018 at 11:35 AM
What I want to do and don't know how to do is :
draw a line with mouse : this is normally ok with line renderer
get all this point that represent the line : I saw the array in the inspector, if think it should be lineRenderer.GetPosition fonction
create a mesh from these points in one direction ( if the lien was in (x,y) plane, i want to create an mesh along z axis) : don't know how to do this
add a collider to this mesh : don't know how to do this
Your answer
Follow this Question
Related Questions
How can i destroy a mesh? 0 Answers
Rotation Issue with joint FBX Avatar to Unity 0 Answers
Mesh's Color in RawImage 1 Answer
Model/mesh has huge collider even though there is no collider added and even if there was why so big 1 Answer
Objects Not Visible In Low End Computer. (Shader Error) 1 Answer