set_static_mesh_kdop_collision
Add a K-DOP simple collision hull to a static mesh, choosing from NDOP10, NDOP18, or NDOP26 shapes. Duplicates read-only engine meshes to a writable path first.
Instructions
Add a K-DOP (discrete-oriented-polytope) simple collision hull to a UStaticMesh via UStaticMeshEditorSubsystem::AddSimpleCollisionsWithNotification (the "Add K-DOP Simplified Collision" editor action). shape is one of NDOP10_X | NDOP10_Y | NDOP10_Z | NDOP18 | NDOP26. Reuses the duplicate-first logic so a read-only /Engine source is copied into dest_path first. The subsystem returns a negative index on failure — surfaced as a CLEAN error.
Returns: { static_mesh_path, shape, added_index, simple_collision_count, element_count, collision_added, duplicated_to_game, saved, save_error? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| shape | No | K-DOP hull shape: NDOP10_X | NDOP10_Y | NDOP10_Z | NDOP18 | NDOP26 (default NDOP18). | |
| dest_path | Yes | /Game path to duplicate a read-only /Engine source mesh into first (required only when the source is not under /Game). | |
| static_mesh_path | Yes | Path to the source UStaticMesh. |