I'm currently trying to create simple level geometry for a game I'm working on. I've seen people use cubes with extrusions and then overlay those meshes with bricks and tiles to quickly create buildings.
I've already looked into it and this is what I have right now:
As you can see, it isn't quite working as planned.
The way I achieve this is by checking the angles and direction of the edges to see what is horizontal vs vertical. Then turn the mesh into curves and using them to create mesh or place instances along those curves.
The main issue I have right now is that the instances I place on the cornes are not aligned properly and I have a hard time finding a solution for this. I've looked at some tutorials about aligning instances to normals, but it doesn't quite work in this specific scenario. This is what I have right now:
The whole Transfer Attribute > Align Euler To Vector just doesn't give the right result, even with different combinations.
So my question is: How do I get the right orientation for the instances on the corners?
I'm also very new to Geometry Nodes and especially new to what I'm trying to create right now, so tips and tricks are very welcome also.
Link to the .blend file: