Hey guys! I am currently making a wall placement system and I am trying to replicate a thing from bloxburg as shown in the picture below:
The picture displays that a wall model has two parts inside. That is what I am trying to outline. Where the different colours represent either inner or outer(… such as yellow/orange and respectively for outer would be green/red)
I have a placement system where I ‘draw’ the walls by instancing a part relative to the two given points that gets created upon this function.
An example code shown below:
Now onto accomplishing what I want. It would require for me to store poles/points in a table and when two points intersect (… probably by using runservice in combination with :GetTouchings), I will have to determine 2 things.
- Is it either the outer-walls that needs to resize (Green and red) or the inner walls (yellow and orange) - I can do this by looking at the angles but I am stumbling on how to accomplish this because I am not familiar with this area.
- Now when have determined this, only one wall needs to extend but I have no idea how to re-(position/adjust size) my wall to accomplish this task.