- Home /
The question is answered, right answer was accepted
Grid based building system help,grid based building system, how do i make other structures not overlap
I'm working on a city building game but i can't figure out how to make some structures use more of the grid (4 spaces) and some of them use only 1. Can u help me i'm dumb
You haven't provided enough technical info about your project.
How do you place the buildings?
How do you keep track of where the current buildings are?
etc.
I would just like to bring to your attention that there are some really useful functions you can use to check if an object can be placed in the desired position (using Colliders).
Physics functions:
https://docs.unity3d.com/ScriptReference/Physics.html
Physics.CheckBox() (this may be the one you need):
https://docs.unity3d.com/ScriptReference/Physics.CheckBox.html
Create a new scene for testing and experiment with those functions before you attempt to implement them in your project.
okay it might help me actually.. i'm trying it