Blanket Collision is the best way to quickly generate collision for rock clusters, modular assets, piles (of objects) and just about any other scenario where multiple object collisions are too expensive to process.
Blanket Collision is an Editor plugin, that creates a collision surface for a group of scene assets. You can just place a capture box around the sources, adjust the grid resolution, and generate a static mesh.
Blanket Collision actor uses this mesh to provide invisible collision in the game. The plugin captures rendered depth, so the sources don't need existing collision.
Workflow
You can choose specific actors with Actor List mode, or use All Visible in Box to capture loaded surfaces that are visible in the editor.
The capture follows the actor's local Z axis. Rotate the actor to capture from above, from the side, or at an angle. The generated surface follows the first contact inside the box. Empty samples leave gaps, so separate rocks can form separate surfaces.
You can enable Extend Borders To Bottom to add walls from each surface boundary to the bottom of the box. This includes boundaries around holes. The walls can extend below terrain, while the bottom stays open.
Unreal's mesh simplifier reduces the surface before the plugin adds walls. Use the editor wireframe preview to inspect the result, then test it with your game's characters and collision queries.
Features
Select source actors in a list, or capture visible surfaces inside the box.
Fit the box to the listed sources while keeping its rotation.
Rotate the capture around any axis and use positive, nonuniform actor scale.
Set the grid resolution from 64 to 1024 samples per axis.
Reduce the surface triangle count with Unreal's quadric mesh simplifier and optional boundary preservation.
Extend open boundaries to the box bottom without adding a bottom cap.
Choose whether collision queries hit one side or both sides of each triangle.
Inspect an editor-only wireframe while the collision mesh stays invisible in the game.
Disable source collision automatically after generation succeeds, and restore it through the actor's controls.
Save generated meshes in a folder for each level under a configurable parent folder.
Regenerate the same actor's mesh in place while its level and parent folder stay the same.
Technical Details
The plugin generates collision in the editor. A runtime module supplies the actor that references the saved mesh in packaged games. The actor doesn't capture depth or generate meshes at begin play.
The generated static mesh uses Use Complex Collision As Simple. Its collision component uses BlockAll and contributes to navigation by default. Use the result for static scenery; this collision mode doesn't support physics simulation of the Blanket Collision actor itself.
The plugin uses Unreal's Geometry Processing plugin for generation. It requires an active rendering device and doesn't generate collision during Play or Simulate mode.
Included With The Plugin
The package includes the C++ runtime and editor modules, an editor menu, Details panel controls, and Documentation.
UE Dependencies
The plugin requires Epic Games' GeometryProcessing Plugin to be enabled.