Question about placement system

Quick and simple

image

Is it possible to fill these inner corners, if so, how?

1 Like

The problem is, how am I gonna find a corner like that?

It depends on your implementation and whatever generates these walls. The second solution (works only if your walls join at 90* angle) is to get the width of one wall and the witdh of the second. Let’s call them x and z. Also get the height of the wall: y. Now create a part of size (x, y, z) and put it where the walls join.

You can also resize one of the walls in that situation to be longer depending on the calculations we did before.

I think you can add a block as a corner in your placement system. Many games added that.

It’s a tycoon https://gyazo.com/4a32d5d6fda74519127644314ab876f1

I want it automated. I think its way better that way for my game

You can store the information about the wall placement somewhere in a table (I assume that you will want to save them to datastore anyways so it will be helpful in that too). Now when a new wall is added or a wall is removed you will have to check all the connections with that wall.

1 Like