Align tetrahedrons
- by thedeadlybutter
I'm currently generating tetrahedron meshes in Unity
When a player clicks the side of a mesh, a new one spawns aligned with it, like this.
I'm not sure how nor can I find any information on implementing a tetra hedron grid. I tried playing around with the vertices until I realized I need to adjust position & rotation. Any ideas?
EDIT: To be clear, the second image was manually placed objects in the Unity Editor. I'm looking to make an algorithm that places the meshes correctly.