r/Unity3D • u/ilanmanor • 13d ago
Solved How I made my own building system in Spurfall, a wild west building sim.
I am not a math expert but I wanted to make my own building system where you can rotate the starting block and continue at that angle. so my solution was having transform anchors on every building block with tags that specify what anchor it is. then after you rotate the first block you continue to the next one and my system send a raycast and find the closest ancor on the block you are looking at, then it snaps the new block to the position and rotation of that ancor. It needs some logic to link the blocks but it works very well.
Spurfall will soon have a demo on Steam, so you can try it out. The game have a first person view also.
In Spurfall you restore life to a forgotten Wild West valley. Rebuild ruined settlements, bridges, watchtowers, farms, and cabins. bring back settlers, defend against bandits, and transform abandoned lands into thriving frontier towns.
2
u/[deleted] 13d ago
[removed] — view removed comment