It is necessary to produce boolean subtraction. Source finurs: cubes (or the simplest volume letter "T"), planes (up to 10 corners, including non-convex). Poligonazh minimum for such figures. Subtractions are made in realtime. With one mesh there can be 6-8 consecutive subtractions.

Simple examples of use:

1) There is a room with six walls and a floor plane. It is necessary to cut this plane along the walls to get the floor of the correct shape.

2) There are ceramic tiles on the wall. It needs to be cut along the border of the wall and along the border of the doorway simultaneously. If the tile on the floor is simply cut along the border of the floor (the floor can be a non-convex polygon, the tile can be divided into two parts as a result).

Now this plugin is used: https://github.com/karl-/pb_CSG Unfortunately, sometimes it hangs up the application without debugging information and gives artifacts. I myself am not friends with calculations, writing something of my own is hard.

Can someone advise other solutions?

    1 answer 1

    Using Unity as a 3D editor does not make sense. Unity is a game engine, not a 3D editor. Objects that can be created in a unit are in fact only needed for tests.

    The solution is more than simple: for modeling you need to use the 3D editor at your discretion: 3D max, Maya or any other.

    • Subtractions are made in Play Mode. Moreover, in the assembly. - Roman Dyachenko
    • one
      Again, this is not profitable in terms of resources. All the breaking and destruction of objects is done first of all in the 3D editor, and then the objects are placed in one heap as one piece. Do it during the game = not optimal use of end-user resources. Exactly the same applies to boolean subtractions in models. - user221357
    • Nobody said that this is the realization of destruction. This is a non-game software with specific tasks. Both that and another obviously follows from the initial statement of the problem. The entire contents of the scene is created procedurally, so you can not prepare the necessary things in advance. There is no observable number of options for subtracting objects. - Roman Dyachenko pm