When making a procedural mesh, is it possible to have a generated collision which is a volume, instead of being made up of flat triangles?
For example, I would like to be able to use UKismetProceduralMeshLibrary::GenerateBoxMesh
to generate a solid box mesh and allow if to have a volume-based collision instead of just collisions for each of the faces of the cube. Right now, I get overlap entry/exit events for each face, but I would prefer to get overlap entry/exit events for the cube as a whole, allowing the negative space inside of the cube to be part of the collision volume.
Is it possible to give procedural meshes a volume of collision?
My workaround currently is to spawn a UBoxComponent
that is aligned to the same bounds. But, if a single vertex of the box is moved to a different position, then the collision bounds would not stay aligned. I would love if I could have a volume-based collision with my procedural mesh that directly aligns to my defined mesh vertices.
Thanks!