For a project I am working on I create some 3D props in Blender that can be put together in a modular way on a 2D grid in Unity. In Unity I generate the grid contents using these props. Now given these two simple shapes (imagine a pipe or railing in top view):
If they are put next to eachother on the grid like so (left):
I want to make a smooth transition between the two so that their edge vertices align nicely (snap together, see right image above). Note that the angle between the shapes is always the same. However there are variations like straight, left, right for each intersection and also numerous shapes.
How can I achieve this?
I have thought of the following possibilities:
- Just model each possible variation in blender and use the matching prop when generating the grid (I hope I can avoid this since its a lot of effort, also it's not reusable)
- Rig the shapes in Blender. In Unity move the bone transforms accordingly so that they align (I like this idea, but is it practical?)
- (Somehow) mark the vertices on the edge of the shapes and move them to where they belong i.e. modify the mesh in Unity.
Are there other/better ways to achieve this? I appreciate any hints and tips.
I also know I am not the first one to try this so any guidance on where to look for resources and what terms to search for is also appreciated.