How to create a hole in the wall?

Hello there! I am working on a game, and want it so players can place doors. I know I can use CSG maybe, but I want to use it on the client. Can I split the wall into seperate parts using math? I know this is kind of asking for code, but I am really confused. The only topic I can find is my question, but reversed. I also heard that CSG uses a bit of memory (or something like that). Thank you!

3 Likes

You’d need to first put the wall onto one axis, two split the wall into 4 parts (one under the door, the other above) then get the position of the door and resize the part based of the door size and position of the door. Move the door parts into position and yeah.

1 Like

Thanks for the reply. But… idk how to do that. How would I calculate the positions and the sizes?

1 Like

what you want to do is get a bit of paper and draw out a grid and try to figer out the math their. Or at least thats how i always do it

1 Like