Could you make something similiar to the blender boolean modifier

I wanted to make a game which could make bullets take out a portion of a piece of land similar to how if you apply the boolean modifier in Blender to and object it takes away the contents of the other object, I wanted to know if this is possible. Sorry if this is not the appropriate forum for this but I didn’t know where to put it

Put it in the Scripting forum. And yes, it is possible.