Geometry Script: Slice mesh and enable physics for each half?

I enabled the Geometry Script plugin, created a Dynamic Mesh Component, and added a cylinder component in its Rebuild Generated Mesh event.

I’ve been playing with trying to cut the mesh, and I’ve found that Apply Mesh Plane Slice does slice the cylinder into two pieces. But the cylinder stays together intact; I want the two pieces to have physics/collision such that they slide apart. I don’t even see how to get access to the two pieces, let alone how to tell them to enable physics simulation…?

Hi Inconceivable,

Good question, I think using Geometry Script to generate collision on the newly created dynamic mesh could be a piece to the puzzle.

There was a livestream on this topic a while ago. (It looks like they are using “Procedural Meshes” as opposed to “Dynamic Meshes” 20:41 (so maybe not a good path forward if you want to stick with geometry script))

In the Proc mesh vein: I also want to mention Elhoussine Mehniks ProcMesh Cutting project sample. (+ a ‘Shape Slicer VR’ project in the Virtual Reality section.)

Hope that helps!

From what I can tell, Procedural Meshes are the old way to do it and Epic is pushing the Geometry Script stuff now. I’ve rigged up an alternate version that uses two Apply Mesh Plane Cuts instead to manually create each half of the cut, but it feels like Slice is what I should use, and there should be a way to mimic the “create other half” functionality of Slice Procedural Mesh.