Okay, the title is a little misleading so allow me to explain.
I have 3 empty GameObjects sitting in space. The position of these 3 GameObjects can change, as well as their distance from eachother.
I want to create a flat triangular plane between the three points that can be walked on. Therefore, creating the triangle model before hand would be a waste seeming as its three-corners can shift. I’m thinking this can be partly solved using some sort of transparent shader but I’m a noob at those.
Ultimately, I’d like to generate shapes based on these empty GameObject positions. 4 corners (quadrilateral) would be quite difficult seeming as sometimes the surface would need to curve around.
If anyone knows where I should start looking please let me know! Thanks
It finds the three points and then creates a triangle. The problem is, it only accepts either clockwise or counter-clockwise. I need the triangle to be double-sided. Is there any way I can achieve this in one script rather than having to separate objects for each triangle? In other words, can I have a double-sided triangle as my mesh?
As far as I know you cannot have double sided triangles. I think, you would have to have 2 separate triangles “back-to-back” but you don’t need a separate object for it. Just add vertices, etc… to the mesh you already have.