When I was making my game, I was faced with a problem. When I was making my beautiful wall placement system, the walls would not fit together. To give an example of this is:
As you can see in the badly made video, when I rotate the walls, you can only place walls on one side. I want a solution to fix so it snaps to both sides.
One solution I was looking into is the walls can collide with each other when placed, but only on corners where they meet perpendicular and only the end parts of the wall are touched, but I do not know how to do this efficiently.
Details:
When moving the walls, the grid size is 1 stud
The wall’s size is 1 by 0.2 by 1 studs
If it is any help, my code uses EgoMoose’s placement module: Creating A Furniture Placement System.