Hey, soo building systems aren’t that hard to make, you get mouse position, some math to regulate object and whoola, but how about making underground building system where you can place object like a trench in parts that already have been placen? there is one game i don’t remember name, where similar mechanic was achieved somehow, any ideas or clues how to make it?
Well, bloxburg is sort of similiar. Not trenches but instead basements, that was very impressive.
To be honest that seems very difficult, I think they sorta made the blocks like grid-based, and then when the mouse was being held in the grid’s region it would destroy that grid block.
Hmmm, bloxburg had one crucial advantage, apart of block grid they could use unions as only 12 basements at worse part wouldn’t be that costly, also square basements in bloxburg aren’t trenches, but thx for reply
Ohhh wait I think I know what you mean, I think for trenches you’d need more than just a regular raycast.
Raycasts are invisible lines but obviously they’re very thin,
I recommend using block casts/sphere casts which are thicker and detect intersections within a certain region.
But I’m not sure about the whole thing, I can only make basic building systems (without grid-snapping either).
ummmm.??? why would i need to detect collision when i ask how to create trench system without this blocky grid, as it could turn map from 100 parts to 5000, also detecting region is the simple part of it, worse would be actually placing it inside this part to look good and function well
Sorry english isnt my first language so sorry if I said the wrong things. I’m still taking classes. Hopefully someone else comes to help.