I’m scripting a generator. You type in the coordinates of beginning and end of a road, it generates the road and buildings beside it. My problem are the crossroads.
I have pics:
As you can see, at the crossroads the buildings overlap in a way and are also on the road.
How can I check before I instantiate the building, if there is anything (road or another house) nearby?
I tried it with Physics.OverlapSphere, but it doesn’t work.
Probably a little harder than that I think in this case you’d probably at least want to use a point-segment distance check rather than a point-point distance check (otherwise, the results will likely be quite inaccurate).
You’re right though that colliders aren’t really needed for this.