Is it possible to use a Bool Cutting Operation on a DynamicGeneratedMeshActor using a Static Mesh in Runtime?

So I’ve been workig on a Game where you can “Mine” into the Ground. This is accomplished by Performing Bool operations on a Dynamic Mesh, hence cutting a spheric hole of a predetermined Size on the specified location.(See Screenshot 1)

Now I want to add Cave Systems into the DynamicGeneratedMeshActor that are randomly generated using an Array of Static Meshes that are Chosen randomly to add some more interesting underground landscape while “Mining”. The Static Mesh for the Caves is Generated with PCG and Splines.

The problem that I have is that i cannot use a Static Mesh for the Bool Operation, because the Bool Operation only accepts other DynamicMeshActors as the “Tool Mesh”(See Screenshot 2).

Is there any way to turn the StaticMesh of the Cave into a DynamicMeshActor or use the Bool operation directly?

Its Important that the Bool-Operation works in runtime or that the Actor is already presaved, so i can apply it in runtime to the Mineable Ground (DynamicMeshActor).

Also I’d be open to other Ideas for making this work, thats just the only way that comes to mind for me atm.

FYI:
Maybe Its also important to note that I use multiple DynamicMeshActor’s for the Ground, one very big one is just getting worse and worse Performance the more you use BoolOperations on it.

Thanks <3

Sooo i’ve found a way thats kind of Working. I generate Dynamic-Mesh-Spheres of Different Sizes along a Spline with PCG, Voxelwrap them and do some Cleanup, tesselation and so on. Then I use the Bool-Operator.

The Only problem with this approach is that the PCG actions to generate the Spheres are very Performance Hungry, for now I used a fake Loading Screen to Let it Load in the meantime ( 10 Mid Sized Caves take about 10 seconds to load and cut them in the Ground. I saw that you can offload PCG tasks to other Cores with async functions in C++, I will be looking into that shortly and tell you if i can improve the Loading.

If anyone wants to know how I did it just ask me and ill post Screenshots of my BP’s! :slight_smile:

<<3